JDBC Driver for Azure Active Directory

Build 24.0.9175

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 Description
CallbackUrl String The URL to which the user will be redirected after successfully authorizing your application. Ensure this matches the Reply URL configured in the Azure Active Directory lication settings for proper redirection.
State String A unique string value to maintain state between your authorization request and the response. Useful for preventing cross-site request forgery (CSRF) attacks and identifying user sessions.
Scope String A space-separated list of permissions or scopes being requested from the user during authorization. For OAuthGrantType='CODE', these are user-facing scopes. For OAuthGrantType='CLIENT', use 'https://graph.microsoft.com/.default' to leverage preconfigured application permissions.

The default value is offline_access https://graph.microsoft.com/.default.

Prompt String Specifies the behavior for user authentication: default 'select_account' prompts the user to choose an account, 'none' skips the prompt, 'login' forces the user to re-enter credentials, and 'consent' displays a consent screen for granting permissions.

Result Set Columns

Name Type Description
URL String The generated authorization URL that users can visit in their Web browser to authenticate and provide authorization to your application.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175