Skip to main content

github_oauths

Creates, updates, deletes, gets or lists a github_oauths resource.

Overview

Namegithub_oauths
TypeResource
Idazure_extras.devhub.github_oauths

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
valuearraySingleton list response containing one GitHubOAuthResponse response.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_github_oauthselectlocation, subscription_idCallback URL to hit once authenticated with GitHub App to have the service store the OAuth token. Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
github_oauthexeclocation, subscription_idGets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App. Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.

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
locationstringThe location name. Required.
subscription_idstring

SELECT examples

Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token. Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.

SELECT
value
FROM azure_extras.devhub.github_oauths
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App. Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.

EXEC azure_extras.devhub.github_oauths.github_oauth 
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"redirectUrl": "{{ redirectUrl }}"
}'
;