#364
Support GitHub OAuth app token and grant revocation
- Add
DELETE /applications/:client_id/tokenandDELETE /applications/:client_id/grant, authenticated with the app's client credentials, revoking one token or the user's grant and all its tokens, with422for a token that is unknown or belongs to another app and401for wrong client credentials. - Return
401 Bad credentialsfor a revoked token in every mode, instead of falling back to the default user, and share the grant revocation with the settings page, with regression coverage and docs.
References:
- Both endpoints, Basic authentication with the client ID and secret,
204and422, and a deleted grant removing the app's access and tokens: https://docs.github.com/en/rest/apps/oauth-applications - Invalid credentials return
401 Unauthorized: https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api
Fixes #363
Activity
6vercel[bot]reviewed2d ago
vercel[bot]reviewed2d ago
@jychp is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.