GetOAuthAuthorizationURL
Retrieves the OAuth Authorization URL, allowing the client to direct the user's browser to the authorization server and initiate the OAuth process.
Input
Name | Type | Required | Description |
Scope | String | False | Specifies the permissions being requested from the user during the OAuth flow. For 'CODE' grant type, this typically includes permissions like 'offline_access' and 'https://graph.microsoft.com/User.ReadBasic.All' for user-related access. For 'CLIENT' grant type, the '.default' scope automatically uses the permissions pre-configured in your Azure AD app. |
CallbackUrl | String | False | The URL to which the user will be redirected after successfully authorizing the application. Ensure this URL exactly matches one of the configured Reply URLs in the Azure AD app registration settings. |
State | String | False | A unique value used to maintain state between the authorization request and callback. This value is typically used to prevent cross-site request forgery (CSRF) attacks and should match the state sent in the initial authorization request. |
Prompt | String | False | Determines the type of user interaction required during the authentication process. Options include 'select_account' to prompt for account selection, 'None' to suppress prompts, 'login' to force credential entry, and 'consent' to explicitly display the permissions consent dialog. |
Result Set Columns
Name | Type | Description |
URL | String | The dynamically generated authorization URL that the user can navigate to in their browser. This URL initiates the OAuth flow and enables the user to grant permissions to your application. |