Skip to content

Missing nonce parameter when requesting id_tokens #128

Description

@moudis

The documentation indicates that a user might wish to set the response type in calls to get_authorization_request_url to id_token. However, doing that results in an error from Azure AD: "AADSTS90014: The required field nonce is missing.". Manually appending the nonce as a query string parameter (&nonce=value) to the generated URL works fine.

Would it make sense to add a nonce argument to that function to support that request type?

An example of a failing call is:

url = msal_app.get_authorization_request_url([],
                                             redirect_uri='http://localhost:5000/signin-oidc',
                                             state=state,
                                             response_type='id_token')

... where msal_app is a ConfidentialClientApplication, and state is just a v4 UUID.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions