You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
RFC 6749 states in 2.3.1 that the client_id and password must be URL encoded before being base64 encoded.
(also see the errata https://www.rfc-editor.org/errata/eid4749 which clarifies it).
The current code in oauth2.py does not do the urlencoding step as far as i can see:
Thanks for the nice finding! Out of curiosity, you were just doing a code review, weren't you? Your existing Microsoft Identity confidential app powered by MSAL still works, doesn't it?
Or, are you using MSAL on other identity platform?
It got mentioned in a bugreport for CZ-NIC/pyoidc#754 and as we decided that we were spec compliant there, i reported it here. So this might actually be buggy on the Azure server side too, did not try with a proper client_id/secret that needs to be quoted.
Describe the bug
RFC 6749 states in 2.3.1 that the client_id and password must be URL encoded before being base64 encoded.
(also see the errata https://www.rfc-editor.org/errata/eid4749 which clarifies it).
The current code in oauth2.py does not do the urlencoding step as far as i can see:
microsoft-authentication-library-for-python/msal/oauth2cli/oauth2.py
Line 208 in 0ced4cb
The text was updated successfully, but these errors were encountered: