Skip to content

Commit

Permalink
Merge pull request #105 from AzureAD/customizable-response_type
Browse files Browse the repository at this point in the history
Customizable response_type
  • Loading branch information
rayluo authored Oct 15, 2019
2 parents d640457 + 152b12c commit 8e83dd6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion msal/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def get_authorization_request_url(
Identifier of the user. Generally a User Principal Name (UPN).
:param str redirect_uri:
Address to return to upon receiving a response from the authority.
:param str response_type:
Default value is "code" for an OAuth2 Authorization Code grant.
You can use other content such as "id_token".
:return: The authorization url as a string.
"""
""" # TBD: this would only be meaningful in a new acquire_token_interactive()
Expand All @@ -230,7 +233,7 @@ def get_authorization_request_url(
{"authorization_endpoint": the_authority.authorization_endpoint},
self.client_id)
return client.build_auth_request_uri(
response_type="code", # Using Authorization Code grant
response_type=response_type,
redirect_uri=redirect_uri, state=state, login_hint=login_hint,
scope=decorate_scope(scopes, self.client_id),
)
Expand Down

0 comments on commit 8e83dd6

Please sign in to comment.