Excel Add-In for GitHub

Build 24.0.9175

GetOAuthAccessToken

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

Input

Name Type Description
AuthMode String Specifies the authentication mode to use. Valid options are 'APP' for application-based authentication and 'WEB' for web-based user authentication.
Verifier String The verifier token provided by GitHub after the user completes authorization using the URL from GetOAuthAuthorizationURL. Required only when using the 'WEB' authentication mode.
Scope String Defines the permissions or access levels being requested from GitHub, such as 'repo' or 'user'.
CallbackUrl String The URL where the user is redirected after authorizing the application. This URL should match the one configured in your GitHub app settings.
State String A unique value sent with the authorization request, returned by GitHub to help your application maintain state, prevent cross-site request forgery (CSRF), and redirect the user to the appropriate resource after authentication.

Result Set Columns

Name Type Description
OAuthAccessToken String The OAuth Access Token issued by GitHub, used to authenticate API requests on behalf of the user or application.
OAuthRefreshToken String An OAuth Refresh Token that can be used to request a new access token without requiring user re-authorization.
ExpiresIn String The time remaining, in seconds, before the access token expires and must be refreshed or replaced.

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