Repository navigation
feat(auth): add the OAuth server operations - #1058
Merged
Merged
Conversation
…rization # Conflicts: # packages/Gotrue/Gotrue/Api.cs # packages/Gotrue/Gotrue/Interfaces/IGotrueApi.cs
…e OAuth server tests do not need The E2E tests now register their own OAuth client and start their own authorization requests, so nothing is seeded. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… conventions Use the auth.oauth_server capability keys, the Async suffix and one folder per use case. Drop the no-op AuthorizationOptions, escape the authorization id, send typed bodies, throw GotrueException on empty answers and revoke a grant by client id. Cover every call with contract, approval and unit tests, and make the E2E tests register their own client so they can be rerun. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ecided Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the OAuth server operations for the signed-in user: read, approve and deny an authorization request, list grants, and revoke a grant. Supersedes #818, built on @diegofesanto's commits.
New public surface, all unshipped: the five methods and their IGotrueApi twins, OAuthRedirect and OAuthAuthorizationClient (Common), OAuthAuthorizationResponse, OAuthAuthorizationDetails and OAuthAuthorizationUser (GetAuthorizationDetails), OAuthGrant (ListGrants). The twins are a second public member per operation, the cost of the existing jwt overload pattern.
Deviations from supabase-js:
skipBrowserRedirectoption: a .NET client does not navigate a browser.Guidinstead of an options object.Contract checked against the auth OpenAPI and handlers: paths, consent body,
client_idquery, 404oauth_authorization_not_found/oauth_consent_not_found, 400validation_failedfor an authorization already decided.E2E tests register their own OAuth client and authorization, so they need no seed data and can be rerun.