JDBC Driver for Elasticsearch

Build 26.0.9770

GetOAuthAccessToken

Gets an authentication token from AzureAD.

Input

Name Type Description
AuthMode String Specifies the authentication flow. Choose 'APP' for desktop-based apps or 'WEB' for browser-based apps using OAuth.

The allowed values are APP, WEB.

The default value is APP.

PKCEVerifier String The PKCEVerifier returned by GetOAuthAuthorizationUrl.
Verifier String A verifier returned by the service that must be input to return the access token. Needed only when using the Web auth mode. Obtained by navigating to the URL returned in GetOAuthAuthorizationUrl.
State String Indicates any state which may be useful to your application upon receipt of the response.
Scope String A space-separated list of scopes to request from the user.
Prompt String Defaults to 'select_account' which prompts the user to select account while authenticating. Set to 'None', for no prompt, 'login' to force user to enter their credentials or 'consent' to trigger the OAuth consent dialog after the user signs in, asking the user to grant permissions to the app.

Result Set Columns

Name Type Description
OAuthAccessToken String The access token.
OAuthRefreshToken String The OAuth refresh token.
ExpiresIn String The remaining lifetime on the access token.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9770