Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Fix credential-based microsoft authentication #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

PierreSchwang
Copy link

@PierreSchwang PierreSchwang commented Nov 1, 2023

  • Microsoft adds multiple Set-Cookie headers in their response, which this change now respects.
  • Additionally, the used ClientID in the oauth20_token.srf-Route is invalid and should be equal to the one from the login endpoint (otherwise the granted code is invalid due to different environments)
  • Removed the unused parameters from MsAuthenticationService#getLoginResponseFromCreds (No need for deprecation as this method is private either way)
    Fixes Microsoft authentication with username and password not working #27

If the request to the login route fails (due to whatever reason), the header is missing and calling String.join would invoke List#get on a null-list. Just fallback to an empty list.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft authentication with username and password not working
1 participant