GitHub: 1–2 hours of work, no review wait.
Required wait: none; any GitHub user can authorize a registered OAuth app immediately, with no GitHub review, verification or distribution switch. Optional: Marketplace listing and publisher verification (needed only for paid plans or a badge; no official timeline). Limits: each customer org owner must approve the app for private org data, tokens share the user's 5,000 req/hour budget (15,000 for Enterprise Cloud orgs), and 10 tokens per user/app/scope.c2c13c19
Most likely to stop you
Customer organizations have OAuth app access restrictions on by default, so an org owner must approve your app before the agent can reach that org's private repositories; this is customer-side, not a GitHub review.
- Sheet
- GitHub OAuth app
- Difficulty
- 2 of 5
- Facts checked
- 41 of 42
- Agent can do
- 5 of 11 steps
- Checked
- 2026-11-01
- Scale
- Self-serve + app config
Schedule
- Agent can do this (5)
- You (5)
- Provider wait (1)
Create the app
- 1Navigate to GitHub Developer Settings and Create ApplicationYou5 min
Open Developer Settings under your personal profile or organization account settings. Click 'OAuth apps' and select 'New OAuth App'.c2
docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
- 2Draft Application Metadata and Callback URIsAgent can do this5 min
Fill out the Application Name, Homepage URL, and Authorization Callback URL. GitHub allows up to 10 callback URLs per registered OAuth application.c4
docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
- 3Configure Token Expiration and Device Flow SettingsAgent can do this5 min
Ensure token expiration is configured (enabled by default). Enable the Device Flow option if your agent runs in headless environments such as CLI applications.c5c6
docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
- 4Generate and Secure Client SecretYou5 min
Generate a client secret on the app's settings page and keep it only in your backend (environment variable or secret store). Never ship it in browser or mobile code; do the code exchange server-side.c13
Test with your own account
- 5Construct Authorization Request URLAgent can do this5 min
Redirect to https://github.com/login/oauth/authorize with client_id, redirect_uri (must exactly match a registered callback unless wildcard matching is enabled), scope and an unguessable state. PKCE is optional but recommended: send code_challenge (43-char SHA-256) with code_challenge_method=S256; plain is not supported.c11c12
docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
- 6Perform Authorization Flow with Test AccountYou5 min
Open the generated authorization link in a web browser signed into a GitHub test account and approve the requested scope permissions.c14
docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
- 7Exchange Authorization Code for Access TokenAgent can do this5 min
Receive the temporary code parameter on your redirect URI callback and make a server-side POST request to `https://github.com/login/oauth/access_token` within 10 minutes to obtain an access token.c10c13
docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
- 8Implement Token Expiration and Refresh LogicAgent can do this10 min
Handle 8-hour access token expiration and store the 6-month refresh token to obtain fresh access tokens when `offline_access` scope or expiring tokens are enabled.c7c8
docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Go to production
- 9Deploy OAuth App to ProductionYou10 min
Put the Client ID and server-side Client Secret in production config. Any GitHub user can connect immediately with no GitHub review, but for customer organizations with OAuth app access restrictions (default on) an org owner must approve the app before the agent can reach private org repositories.c2
docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
- 10(Optional) Publisher Verification for paid Marketplace plans or badgeYou30 min
Only needed to offer paid Marketplace plans or show a Marketplace badge. Transfer the app to an organization, enable org 2FA, verify a domain, set a support email, then request verification. GitHub states no timeline.c16c17c18
- 11(Optional) Wait for GitHub Marketplace Submission ReviewProvider wait
Optional: wait for GitHub to review your Marketplace submission. GitHub does not publish a review timeline; community reports put it at roughly 2–6 weeks.c19
Review note
Numeric verdict confirmed (no provider gate, so 0-0 days and difficulty 2 stand). Summary reworded to keep the community 2-6 week Marketplace figure out of the verdict and to separate required wait, optional listings and post-connect limits; rate-limit claim corrected to include the 15,000/hour Enterprise Cloud tier. See the verification log
Optional listings
Not needed for your users to connect through OAuth. Worth it only for the reason given.
| Listing | Wait | Why you might want it |
|---|---|---|
| GitHub Marketplace free listing (onboarding-expert review) | Unknown | For vendors wanting discovery inside GitHub; not needed for OAuth to work. Official docs give no timeline; a community source (devactivity.com) reports roughly 2-6 weeks.o1 |
| Publisher verification for the owning organization | Unknown | Only for vendors who want paid Marketplace plans or a Marketplace badge; requires org-owned app, org 2FA, verified domain and support email.o2 |
| Paid GitHub Marketplace listing | Unknown | Only for vendors billing through GitHub; needs verified publisher, purchase-event handling, monthly and annual billing, and should have 200+ users for an OAuth app.o3 |
Limits after users connect
| Limit | What it means for your agent |
|---|---|
| Org OAuth app access restrictions (on by default for new orgs) | The agent sees only public data and the user's own repos until each customer org owner grants access, so onboarding org customers needs an admin step per org; a Marketplace listing does not bypass this.l1 |
| User rate limit 5,000 requests/hour (15,000 for Enterprise Cloud orgs), shared with the user's other apps and PATs, plus secondary limits | A busy agent can exhaust a user's hourly budget and break the user's other tools; heavy workloads point toward a GitHub App, not toward a listing.l2 |
| Ten tokens per user/application/scope; ten token creations per hour | An agent that mints a fresh token per session or worker will silently revoke older tokens, so store and reuse one token per user/scope set.l3 |
| Expiring tokens: 8-hour access token, refresh token valid 6 months without use (on by default) | Long-running agents must implement refresh, and a user idle for 6 months must reconnect.l4 |
| Device flow: 50 code submissions/hour per app; user code valid 15 minutes | Headless/CLI agent sign-ins across many users can hit the per-app hourly cap; use web flow for scale.l5 |
| No connected-user or install cap for unlisted OAuth apps | Nothing in the docs caps users of an unlisted app, so no limit makes a Marketplace listing practically necessary for an AI agent.l6 |
Requirements
| Requirement | Needed for | Details |
|---|---|---|
| developer account | test | A personal GitHub account or organization account with administrative access is required to register OAuth applications.c2 |
| domain | production | Domain verification is optional for basic OAuth applications, but required if submitting to GitHub Marketplace with Publisher Verification.c17 |
| security assessment | production | Standard GitHub OAuth apps do not undergo mandatory third-party security assessments or manual review pre-approvals.c2 |
Scopes that change your path
| Scope | Triggers review | Notes |
|---|---|---|
repo | No | Grants full access to public and private repositories. Standard GitHub OAuth apps do not require review to request repo scope.c14c21 |
user | No | Grants read/write access to user profile data. Does not trigger manual app review.c14 |
admin:org | No | Grants full management of organization teams, projects, and memberships. Does not trigger manual app review.c14 |
offline_access | No | Requests expiring access tokens (8 hours) and refresh tokens (6 months). Does not trigger manual review.c7c8c14 |
When you get stuck
| What you see | Why | How to unblock |
|---|---|---|
| Users in a customer's organization connect successfully but your agent can't see the org's private repositories. | OAuth app access restrictions are on by default for new organizations; the app needs org-owner approval. | Tell users to request approval during the consent flow (or in Settings → Applications), and ask an org owner to approve it under Organization settings → Third-party access. Consider a GitHub App instead, which orgs install explicitly.r2 |
| Security vulnerability from exposing client_secret in single-page applications | Attempting to perform the authorization code exchange directly in browser-side JavaScript. | Route the code exchange through a secure backend proxy server holding the confidential `client_secret`.c13 |
| Authorization code invalid or expired during token exchange | The temporary code parameter returned by GitHub expires after 10 minutes or has already been used. | Ensure your backend server exchanges the code for tokens immediately upon receiving the callback.c10 |
| API rate limits reached unexpectedly | GitHub OAuth app tokens share the authorizing user's global limit of 5,000 requests per hour. | Cache API responses or evaluate building a GitHub App, which provides dedicated installation access tokens that scale with organization size.c20 |
Added in human review
Things the agent missed that a reviewer found in the provider's documentation.
- GitHub recommends GitHub Apps over OAuth apps (fine-grained permissions, short-lived tokens, rate limits that scale). The guide only mentions this under rate limitsr1
- OAuth app access restrictions are on by default for new orgs. Unapproved apps get no API access to private org resources, and members must request owner approvalr2
- Token creation is limited to ten tokens per hour per user/app/scope combination, and device flow to 50 submissions per hour per appr3
- Paid Marketplace listings need at least 200 users for OAuth apps (100 installations for GitHub Apps), must handle purchase events, and must support monthly and annual billingr4
- If redirect_uri is omitted, GitHub uses the first configured callback URL, and without wildcard matching the redirect must match exactlyr5
- The device flow user code must be entered within 15 minutes, and device flow needs no client_secretr6
- Requests from apps owned or approved by a GitHub Enterprise Cloud org get 15,000 requests/hour, and the 5,000/hour user limit is shared with the user's PATs and other authorized apps.m1
- Creating more than ten tokens for the same user/app/scope revokes an existing token, so per-session token minting breaks earlier sessions.m2
- Orgs using SAML SSO require the user to have an active SSO session so a credential authorization is attached to the token for that org; otherwise org resources are unreachable.m3
- OAuth app scopes are coarse (repo grants full read/write to all public and private repos); GitHub Apps offer fine-grained, per-repository permissions and are GitHub's general recommendation.m4
- Secondary rate limits (e.g. max 100 concurrent requests, content-creation limits) apply and can change without notice.m5
- sourcesConsulted marks github.com/orgs/community discussions as official: true; they are community content.m6
What we couldn't determine
- The sources do not detail enterprise-managed organization policy approval SLA for third-party OAuth apps.
Evidence
Code assigns every label, not the model. Tested means we ran a probe or setup attempt. Official source means the quote appears word for word on a fetched page on the provider's domain.
Show all 42 facts and where each came from
The GitHub OAuth authorize endpoint redirects requests before validating client_id.
Sent authorization request with an unknown client_id, 2026-11-01 11:38 UTC
GET https://github.com/login/oauth/authorize?client_id=oauthready-probe-invalid-client&response_type=code&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback&state=probe (no redirects followed) → HTTP 302 Location: https://github.com/login?client_id=oauthready-probe-invalid-client&return_to=%2Flogin%2Foauth%2Fauthorize%3Fclient_id%3Doauthready-probe-invalid-client%26redirect_uri%3Dhttps%253A%252F%252Fexample.com%252Fcallback%26response_type%3Dcode%26state%3Dprobe Body excerpt:
Not verifiable from an official source in review round 2, 2026-11-01.
OAuth apps can be created under personal or organization accounts.
“You can create and register an OAuth app under your personal account or under any organization you have administrative access to.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
An account can own up to 100 OAuth apps.
“A user or organization can own up to 100 OAuth apps.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
GitHub OAuth apps support up to 10 callback URLs.
“In "Authorization callback URL", type the callback URL of your app. You can enter up to 10 callback URLs.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
Device flow must be enabled in settings if used.
“If your OAuth app will use the device flow to identify and authorize users, click Enable Device Flow.”
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
Token expiration is enabled by default for new OAuth apps.
“Expire user access tokens is enabled by default.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
Expiring access tokens last 8 hours and refresh tokens last 6 months without use.
“The access token expires after eight hours, and the refresh token expires after six months without use.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Requesting offline_access scope provides expiring access and refresh tokens.
“To test and gradually roll out support for expiring tokens, you can opt in to receive an expiring token and a refresh token for an individual sign-in by requesting the offline_access scope”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
The web application flow is used for browser-based apps.
“Used to authorize users for standard OAuth apps that run in the browser.”
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Temporary authorization codes expire in 10 minutes.
“The temporary code will expire after 10 minutes.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
State parameter is strongly recommended to protect against CSRF attacks.
“state string Strongly recommended An unguessable random string. It is used to protect against cross-site request forgery attacks.”
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
PKCE is optional but recommended; if used, code_challenge_method must be S256 (plain is not supported) and code_challenge must be a 43-character SHA-256 hash
“Must be S256 - the plain code challenge method is not supported.”
Corrected in review round 2, 2026-11-01; it previously said: PKCE parameters listed alongside required params; quote attached describes code_challenge, not the method
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
label: community. The quote is from a community member (alukach) who accepted his own answer, not GitHub docs; the advice itself is sound
“it is not okay to embed your client_secret in a frontend application”
Corrected in review round 2, 2026-11-01; it previously said: label: sourced; sourcesConsulted marks the discussion official: true
Requested scopes are presented directly to the user on the authorization consent screen.
“When setting up an OAuth app on GitHub, requested scopes are displayed to the user on the authorization form.”
Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps
Granted scopes attached to an issued token are listed in the API response.
“Requested scopes and granted scopes The scope attribute lists scopes attached to the token that were granted by the user.”
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps
Publisher verification (org-owned app, org 2FA, verified domain, support email) is required only for paid plans or a Marketplace badge; free listings still need org ownership and an onboarding-expert review.
“To offer paid plans for your app or to include a marketplace badge in your app listing, you must complete the publisher verification”
Corrected in review 2026-11-01; the agent originally said: If listing your app on GitHub Marketplace, transfer ownership to an organization, enable organization 2FA, verify your domain, and submit a Publisher Verification request. Confirmed against primary source in review 2026-11-01.
Publisher verification requires submitting a verified domain.
“Submit a verified domain and ensure that a "Verified" badge displays on your organization's profile page.”
Confirmed against primary source in review 2026-11-01.
Publisher verification requires organization-wide two-factor authentication.
“Ensure that Two-factor authentication is enabled for your organization.”
Confirmed against primary source in review 2026-11-01.
GitHub Marketplace manual reviews typically take 2 to 6 weeks.
“While some lucky developers report approval in as little as 3-7 days, the typical waiting period is: Community Reports: Roughly 2 to 6 weeks.”
Not verifiable from an official source in review 2026-11-01. Not verifiable from an official source in review round 2, 2026-11-01.
5,000/hour per user, shared with the user's PATs and every other app they authorized; 15,000/hour when the app is owned or approved by a GitHub Enterprise Cloud org the user belongs to; secondary rate limits also apply
“owned or approved by a GitHub Enterprise Cloud organization have a higher rate limit of 15,000 requests per hour”
Corrected in review round 2, 2026-11-01; it previously said: Flat 5,000 requests/hour per user
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
An authorized OAuth app gets access to all user resources accessible to that token.
“An authorized OAuth app has access to all of the user's or organization owner's accessible resources.”
GitHub recommends GitHub Apps over OAuth apps (fine-grained permissions, short-lived tokens, rate limits that scale). The guide only mentions this under rate limits
Added in review 2026-11-01. Confirmed against primary source in review 2026-11-01.
OAuth app access restrictions are on by default for new orgs. Unapproved apps get no API access to private org resources, and members must request owner approval
Added in review 2026-11-01. Confirmed against primary source in review 2026-11-01.
Two separate limits: at most ten live tokens per user/app/scope (creating an 11th revokes an older one), and a rate limit of ten tokens created per hour; device flow code submission is 50/hour per app
“There is a limit of ten tokens that are issued per user/application/scope combination”
Corrected in review round 2, 2026-11-01; it previously said: Token creation is limited to ten tokens per hour per user/app/scope combination
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
should have a minimum of 200 users (guideline wording 'should', not a hard 'must'); paid also requires verified-publisher org, purchase-event handling, monthly and annual billing
“OAuth apps should have a minimum of 200 users.”
Corrected in review round 2, 2026-11-01; it previously said: need at least 200 users
If redirect_uri is omitted, GitHub uses the first configured callback URL, and without wildcard matching the redirect must match exactly
Added in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
The device flow user code must be entered within 15 minutes, and device flow needs no client_secret
Added in review 2026-11-01. Confirmed against primary source in review 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
GitHub Marketplace free listing (onboarding-expert review): For vendors wanting discovery inside GitHub; not needed for OAuth to work. Official docs give no timeline; a community source (devactivity.com) reports roughly 2-6 weeks.
“you can request a review by an onboarding expert”
Added in review round 2, 2026-11-01.
Publisher verification for the owning organization: Only for vendors who want paid Marketplace plans or a Marketplace badge; requires org-owned app, org 2FA, verified domain and support email.
“To offer paid plans for your app or to include a marketplace badge”
Added in review round 2, 2026-11-01.
Paid GitHub Marketplace listing: Only for vendors billing through GitHub; needs verified publisher, purchase-event handling, monthly and annual billing, and should have 200+ users for an OAuth app.
“OAuth apps should have a minimum of 200 users.”
Added in review round 2, 2026-11-01.
Org OAuth app access restrictions (on by default for new orgs): The agent sees only public data and the user's own repos until each customer org owner grants access, so onboarding org customers needs an admin step per org; a Marketplace listing does not bypass this.
“API access to private organization resources is not available for unapproved OAuth apps.”
Added in review round 2, 2026-11-01.
User rate limit 5,000 requests/hour (15,000 for Enterprise Cloud orgs), shared with the user's other apps and PATs, plus secondary limits: A busy agent can exhaust a user's hourly budget and break the user's other tools; heavy workloads point toward a GitHub App, not toward a listing.
“All of these requests count towards your personal rate limit of 5,000 requests per hour.”
Added in review round 2, 2026-11-01.
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
Ten tokens per user/application/scope; ten token creations per hour: An agent that mints a fresh token per session or worker will silently revoke older tokens, so store and reuse one token per user/scope set.
“There is a limit of ten tokens that are issued per user/application/scope combination”
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Expiring tokens: 8-hour access token, refresh token valid 6 months without use (on by default): Long-running agents must implement refresh, and a user idle for 6 months must reconnect.
“The access token expires after eight hours, and the refresh token expires after six months without use.”
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Device flow: 50 code submissions/hour per app; user code valid 15 minutes: Headless/CLI agent sign-ins across many users can hit the per-app hourly cap; use web flow for scale.
“there is a rate limit of 50 submissions in an hour per application”
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
No connected-user or install cap for unlisted OAuth apps: Nothing in the docs caps users of an unlisted app, so no limit makes a Marketplace listing practically necessary for an AI agent.
“A user or organization can own up to 100 OAuth apps.”
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app
Requests from apps owned or approved by a GitHub Enterprise Cloud org get 15,000 requests/hour, and the 5,000/hour user limit is shared with the user's PATs and other authorized apps.
Added in review round 2, 2026-11-01.
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
Creating more than ten tokens for the same user/app/scope revokes an existing token, so per-session token minting breaks earlier sessions.
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Orgs using SAML SSO require the user to have an active SSO session so a credential authorization is attached to the token for that org; otherwise org resources are unreachable.
Added in review round 2, 2026-11-01.
https://docs.github.com/en/apps/using-github-apps/saml-and-github-apps
OAuth app scopes are coarse (repo grants full read/write to all public and private repos); GitHub Apps offer fine-grained, per-repository permissions and are GitHub's general recommendation.
Added in review round 2, 2026-11-01.
Secondary rate limits (e.g. max 100 concurrent requests, content-creation limits) apply and can change without notice.
Added in review round 2, 2026-11-01.
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api
sourcesConsulted marks github.com/orgs/community discussions as official: true; they are community content.
Added in review round 2, 2026-11-01.
Pages the agent read (11)
- https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps (official)
- https://docs.github.com/en/enterprise-server@3.18/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps (official)
- https://github.com/orgs/community/discussions/24796 (official)
- https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app (official)
- https://github.com/orgs/community/discussions/61238 (official)
- https://docs.github.com/en/apps/github-marketplace/using-the-github-marketplace-api-in-your-app/handling-new-purchases-and-free-trials (official)
- https://docs.github.com/en/apps/github-marketplace/github-marketplace-overview/applying-for-publisher-verification-for-your-organization (official)
- https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app (official)
- https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps (official)
- https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/differences-between-github-apps-and-oauth-apps (official)
- https://devactivity.com/insights/navigating-github-marketplace-app-submissions-understanding-review-timelines-and-support-a-devactivity-insight (community)