JDBC Driver for GitHub

Build 26.0.9655

GetOAuthAccessToken

Fetches the OAuth Access Token, which is used to authenticate and authorize API calls made to GitHub.

Input

Name Type Required Description
AuthMode String False Specifies the authentication mode to use for obtaining the OAuth access token. Allowed values are 'APP' for app-based authentication and 'WEB' for web-based authentication.
Verifier String False The verifier token provided by GitHub after completing the authorization process using the URL obtained with GetOAuthAuthorizationURL. Required only when 'AuthMode' is set to 'WEB'.
Scope String False A comma-separated list of scopes defining the permissions being requested by the application (for example, 'repo', 'user').
CallbackUrl String False The URL to which the user is redirected after authorizing your application. It should match the callback URL registered with the GitHub app.
State String False A user-defined value passed to GitHub and returned in the response, used for maintaining application state or for security purposes (for example, CSRF protection or nonces).

Result Set Columns

Name Type Description
OAuthAccessToken String The OAuth Access Token issued by GitHub, used for authenticating API requests.
OAuthRefreshToken String An OAuth Refresh Token provided by GitHub, used to obtain a new access token without requiring user reauthorization.
ExpiresIn String The duration in seconds for which the access token is valid before expiration.

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