#379
Bind GitHub OAuth codes to their client
- With OAuth apps configured,
POST /login/oauth/access_tokenanswersbad_verification_codewhen the code was issued to anotherclient_id, and the code stays usable by the app it was issued to. - Exchanges of an app's own code and the permissive mode without
oauth_appsare unchanged, with regression tests inoauth-code-client.test.ts.
References:
bad_verification_codefor a code that is incorrect or does not match the authorization request: https://docs.github.com/en/apps/oauth-apps/maintaining-oauth-apps/troubleshooting-oauth-app-access-token-request-errors#bad-verification-code- Codes issued per
client_idin the web application flow: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#web-application-flow
Fixes #378
@jychp is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.