---
title: "Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo"
tags: ["GitHubOAuth"]
---

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

`POST /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo`

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

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/LocationParameter` — unresolved $ref

## Request body

- GitHubOAuthCallRequest — GitHubOAuth request object
  - `redirectUrl` string — The URL the client will redirect to on successful authentication. If empty, no redirect will occur.

## Response `200`

Azure operation completed successfully.

- GitHubOAuthInfoResponse — URL used to authorize the Developer Hub GitHub App
  - `authURL` string — URL for authorizing the Developer Hub GitHub App
  - `token` string — OAuth token used to make calls to GitHub

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/developerhubserviceclient.md) · [All operations](https://skmtc.dev/azure/apis/developerhubserviceclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/developerhubserviceclient/revisions/24eb04b2d03b/schema)
