Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions msal/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def get_authorization_request_url(
state=None, # Recommended by OAuth2 for CSRF protection
redirect_uri=None,
response_type="code", # Can be "token" if you use Implicit Grant
prompt=None,
**kwargs):
"""Constructs a URL for you to start a Authorization Code Grant.

Expand All @@ -208,6 +209,11 @@ def get_authorization_request_url(
:param str response_type:
Default value is "code" for an OAuth2 Authorization Code grant.
You can use other content such as "id_token".
:param str prompt:
By default, no prompt value will be sent, not even "none".
You will have to specify a value explicitly.
Its valid values are defined in Open ID Connect specs
https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
:return: The authorization url as a string.
"""
""" # TBD: this would only be meaningful in a new acquire_token_interactive()
Expand Down Expand Up @@ -235,6 +241,7 @@ def get_authorization_request_url(
return client.build_auth_request_uri(
response_type=response_type,
redirect_uri=redirect_uri, state=state, login_hint=login_hint,
prompt=prompt,
scope=decorate_scope(scopes, self.client_id),
)

Expand Down