docs: OAuth2 Authorization Server specification#3160
Open
RomainRicord wants to merge 2 commits into01-edu:masterfrom
Open
docs: OAuth2 Authorization Server specification#3160RomainRicord wants to merge 2 commits into01-edu:masterfrom
RomainRicord wants to merge 2 commits into01-edu:masterfrom
Conversation
Add technical specification for implementing OAuth2/OIDC as an authorization server, enabling third-party applications to authenticate users without handling their passwords. This is an additive proposal with zero breaking changes to the existing Basic Auth + Hasura JWT architecture.
Updated the specification based on analysis of the existing codebase: - Document the Gitea token exchange flow (GET /api/auth/token?token=) used by @01-edu/api package - Document the JWT auto-refresh mechanism (GET /api/auth/refresh) - Show how OAuth2 builds on existing infrastructure instead of replacing it - Add architecture diagram of current auth flow - Reference @01-edu/api source and hubspot integration as precedent - Clarify that zero configuration changes needed on Hasura side
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.
Summary
@01-edu/apiGitea token exchange, JWT auto-refresh, Hasura claimsWhat Changed in This Update
Updated the proposal based on analysis of the existing codebase (
01-edu/01-edu-api,01-edu/hubspot):/api/auth/token→ JWT →/api/auth/refresh@01-edu/apisource code andhubspotintegration as precedentWhat the Spec Covers
/api/oauth/authorize,/token,/revoke,/userinfo, discovery)Backward Compatibility
All existing endpoints and the
@01-edu/apipackage continue to work unchanged. The OAuth2 endpoints are purely additive.Closes #3159
Test plan
HASURA_GRAPHQL_JWT_SECRET