Skip to main content

oauth_applications

Creates, updates, deletes, gets or lists an oauth_applications resource.

Overview

Nameoauth_applications
TypeResource
Idgithub.apps.oauth_applications

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
delete_tokendeleteclient_idOAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.
check_tokenexecclient_id, access_tokenOAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return 404 NOT FOUND.
reset_tokenexecclient_id, access_tokenOAuth applications and GitHub applications with OAuth authorizations can use this API method to reset a valid OAuth token without end-user involvement. Applications must save the "token" property in the response because changes take effect immediately. Invalid tokens will return 404 NOT FOUND.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
client_idstringThe client ID of the GitHub app.

DELETE examples

OAuth or GitHub application owners can revoke a single token for an OAuth application or a GitHub application with an OAuth authorization.

DELETE FROM github.apps.oauth_applications
WHERE client_id = '{{ client_id }}' --required
;

Lifecycle Methods

OAuth applications and GitHub applications with OAuth authorizations can use this API method for checking OAuth token validity without exceeding the normal rate limits for failed login attempts. Authentication works differently with this particular endpoint. Invalid tokens will return 404 NOT FOUND.

EXEC github.apps.oauth_applications.check_token 
@client_id='{{ client_id }}' --required
@@json=
'{
"access_token": "{{ access_token }}"
}'
;