-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hydra integration for auth, token and few more endpoints #1032
Merged
sattvikc
merged 40 commits into
feat/oauth-provider-base
from
feat/oauth/pass-thru-apis
Sep 25, 2024
Merged
feat: hydra integration for auth, token and few more endpoints #1032
sattvikc
merged 40 commits into
feat/oauth-provider-base
from
feat/oauth/pass-thru-apis
Sep 25, 2024
Conversation
This file contains 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
porcellus
requested changes
Aug 27, 2024
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
porcellus
reviewed
Aug 27, 2024
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
sattvikc
changed the title
feat: hydra integration for auth and token endpoints
feat: hydra integration for auth, token and few more endpoints
Sep 9, 2024
porcellus
requested changes
Sep 10, 2024
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/session/accessToken/AccessToken.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/CreateUpdateOrGetOAuthClientAPI.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/OAuthAuthAPI.java
Outdated
Show resolved
Hide resolved
porcellus
requested changes
Sep 11, 2024
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenIntrospectAPI.java
Outdated
Show resolved
Hide resolved
porcellus
requested changes
Sep 16, 2024
src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java
Outdated
Show resolved
Hide resolved
porcellus
approved these changes
Sep 19, 2024
* fix: revoke consent sessions * fix: revoke token * fix: revoke impl * fix: revoke session * fix: introspect impl after revoke * fix: revoke by client_id * fix: refresh token check in token exchange * fix: at hash * fix: sqlite impl * fix: client props whitelist * fix: status and query null check * fix: plugin interface update * fix: logout api * fix: ext * fix: accept consent * fix: accept consent * fix: introspect in token api * fix: keep fragment while updating query params * fix: count creds and pr comment * fix: oauth stats * fix: oauth cleanup cron task * fix: gid in refresh token * fix: inememory impl * feat: add initial payload fields to accept consent * fix: revoke cleanup * fix: stats * fix: client credentials basic * fix: authorization header * fix: authorizaion header in revoke * fix: missing table --------- Co-authored-by: Mihaly Lengyel <[email protected]>
sattvikc
added a commit
that referenced
this pull request
Oct 4, 2024
* fix: tenant config * fix: api permissions and telemetry update * fix: totp length validation * fix: accept api key via authorization header * fix: cache control header for jwks endpoint * fix: tests * fix: for dashboard * fix: remove unused import * fix: remove unused import * fix: providers non null * fix: tests * fix: pr comments * fix: pr comments * fix: pr comments * fix: pr comments * fix: improve core config normalisation * fix: more tests * fix: more tests * fix: clean up core config * fix: pr comments * fix: more test * adds config in config.yaml * reformates code * reformats code * modifies changelog * small changes * adds one more config for admin vs public service * starts working on authorization endpoint * removes unnecesssary files * Oauth - WIP (#1018) * fix/change annotations for configs * feat: oauth2 auth API - WIP * fix: hidefromdashboard to oauth_provider service url configs * feat: OAuthAPI input parsing, basic flow * feat: first test in progress * fix: review fixes * feat: tables for oauth in sqlite * fix: remove unnecessary tables * fix: store only the necessary data in the client table * feat: oauth client - app exists check in db, a few tests * fix: review fixes * fix: review fixes * feat: new configs for handling errors from hydra * feat: using the new configs for oauth provider * fix: CHANGELOG * fix: tests for the new Util method * fix: changelog changes * fix: changelog migration section fix * fix: fixing repeated header handling in HttpRequest#sendGETRequestWithResponseHeaders * fix: more tests for oauth auth * fix: review fix - more checks for the oauth config validity * fix: review fix - throwing expection if there is no location header in response from hydra * fix: review fix - renamed exception * feat: oauth2 register client API * feat: oauth2 get clients API * feat: OAuth2 DELETE clients API * fix: following the already existing response pattern with the oauth2 apis * fix: renaming exception to be more expressive * fix: review fixes * fix: using BadRequestException instead of custom format for hydra invalid input errors * Feature: oauth update client api (#1020) * fix/change annotations for configs * feat: oauth2 auth API - WIP * fix: hidefromdashboard to oauth_provider service url configs * feat: OAuthAPI input parsing, basic flow * feat: first test in progress * fix: review fixes * feat: tables for oauth in sqlite * fix: remove unnecessary tables * fix: store only the necessary data in the client table * feat: oauth client - app exists check in db, a few tests * fix: review fixes * fix: review fixes * feat: new configs for handling errors from hydra * feat: using the new configs for oauth provider * fix: CHANGELOG * fix: tests for the new Util method * fix: changelog changes * fix: changelog migration section fix * fix: fixing repeated header handling in HttpRequest#sendGETRequestWithResponseHeaders * fix: more tests for oauth auth * fix: review fix - more checks for the oauth config validity * fix: review fix - throwing expection if there is no location header in response from hydra * fix: review fix - renamed exception * feat: oauth2 register client API * feat: oauth2 get clients API * feat: OAuth2 DELETE clients API * fix: following the already existing response pattern with the oauth2 apis * fix: renaming exception to be more expressive * fix: review fixes * feat: oauth2 client update support * fix: using BadRequestException instead of custom format for hydra invalid input errors * fix: renaming method * fix: remove unused constant * fix: returning 500 when oauth update client goes wrong * fix: fixing test after changing error response * chore: removing TODO from code * fix: merge with latest (#1028) * fix: pathrouter for tenant id stop words (#1022) * fix: pathrouter for tenant id stop words * fix: pathrouter for tenant id stop words * fix: changelog * adding dev-v9.1.2 tag to this commit to ensure building * fix: 500 error to return actual message (#1023) * adding dev-v9.1.2 tag to this commit to ensure building * fix: tests (#1024) * adding dev-v9.1.2 tag to this commit to ensure building * fix: cicd tests (#1025) * adding dev-v9.1.2 tag to this commit to ensure building * Update release.md * feat: add security feature (#1026) * adding dev-v9.2.0 tag to this commit to ensure building * fix: feature test fix (#1027) * adding dev-v9.2.0 tag to this commit to ensure building --------- Co-authored-by: Rishabh Poddar <[email protected]> * feat: hydra integration for auth, token and few more endpoints (#1032) * fix: auth and token api * fix: cookie and code transformations * fix: token re-signing * fix: token endpoint * fix: license check and jwks caching * fix: exceptions * fix: refactor * fix: refactor * fix: refactor and client crud APIs * fix: token type enum * fix: process ext only on access token * fix: refactor * fix: bugs and refactor * fix: oauth clients list api * fix: consent get accept and reject * fix: login request * fix: query param transformation * fix: logout request * fix: refactor * fix: remove error debug and hint * fix: introspect api * fix: pr comments * fix: pr comments * fix: pr comment * fix: pr comment * fix: pr comments and refactor * fix: pr comments * fix: pr comments * fix: revert original http request * fix: pr comment refactor * fix: pr comment * fix: pr comment * fix: pr comment * fix: pr comments * fix: owner and pagination * fix: pr comment * fix: client id check * fix: ext related * fix: pr comment * fix: revoke APIs (#1041) * fix: revoke consent sessions * fix: revoke token * fix: revoke impl * fix: revoke session * fix: introspect impl after revoke * fix: revoke by client_id * fix: refresh token check in token exchange * fix: at hash * fix: sqlite impl * fix: client props whitelist * fix: status and query null check * fix: plugin interface update * fix: logout api * fix: ext * fix: accept consent * fix: accept consent * fix: introspect in token api * fix: keep fragment while updating query params * fix: count creds and pr comment * fix: oauth stats * fix: oauth cleanup cron task * fix: gid in refresh token * fix: inememory impl * feat: add initial payload fields to accept consent * fix: revoke cleanup * fix: stats * fix: client credentials basic * fix: authorization header * fix: authorizaion header in revoke * fix: missing table --------- Co-authored-by: Mihaly Lengyel <[email protected]> --------- Co-authored-by: Mihaly Lengyel <[email protected]> * fix: logout apis (#1047) * fix: logout apis * fix: session revoke in logout * fix: tests * feat: update logout logic to make BE integration easier * refactor: minor fixes for consistency --------- Co-authored-by: Mihaly Lengyel <[email protected]> * fix: tests (#1051) * fix: logout apis * fix: session revoke in logout * fix: tests * fix: tests * fix: tests * fix: tests * fix: versioning and cleanup * fix: http revert * fix: http revert * fix: rename / refactor * revert * revert * fix: test, cleanup and changelog * revert * fix: constraints * fix: constraints * fix: constraints * fix: constraints --------- Co-authored-by: Sattvik Chakravarthy <[email protected]> Co-authored-by: Tamas Soltesz <[email protected]> Co-authored-by: Sattvik Chakravarthy <[email protected]> Co-authored-by: Mihaly Lengyel <[email protected]>
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 of change
(A few sentences about this PR)
Related issues
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your
changes work. Bonus points for screenshots and videos!)
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here
highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)pluginInterfaceSupported.json
file has been updated (if needed)build.gradle
getPaidFeatureStats
function in FeatureFlag.java filebuild.gradle
, please make sure to add themin
implementationDependencies.json
.getValidFields
inio/supertokens/config/CoreConfig.java
if new aliases were added for any coreconfig (similar to the
access_token_signing_key_update_interval
config alias).git tag
) in the formatvX.Y.Z
, and then find thelatest branch (
git branch --all
) whoseX.Y
is greater than the latest released tag.app_id_to_user_id
table, make sure to delete from this table when deletingthe user as well if
deleteUserIdMappingToo
is false.Remaining TODOs for this PR