Skip to content
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

fix: revoke APIs #1041

Merged
merged 32 commits into from
Sep 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8c24a51
fix: revoke consent sessions
sattvikc Sep 16, 2024
59a13cd
fix: revoke token
sattvikc Sep 16, 2024
110f2f7
Merge branch 'feat/oauth/pass-thru-apis' into feat/oauth/revoke-apis
sattvikc Sep 18, 2024
eefbc2b
fix: revoke impl
sattvikc Sep 18, 2024
abc95ef
fix: revoke session
sattvikc Sep 18, 2024
1dee4cc
fix: introspect impl after revoke
sattvikc Sep 18, 2024
9e3caf5
Merge branch 'feat/oauth/pass-thru-apis' into feat/oauth/revoke-apis
sattvikc Sep 19, 2024
a529072
fix: revoke by client_id
sattvikc Sep 19, 2024
8e34a75
fix: refresh token check in token exchange
sattvikc Sep 19, 2024
2577ee2
fix: at hash
sattvikc Sep 19, 2024
74e55ee
fix: sqlite impl
sattvikc Sep 19, 2024
8e79a0f
fix: client props whitelist
sattvikc Sep 19, 2024
a07e69c
fix: status and query null check
sattvikc Sep 20, 2024
7c2842e
fix: plugin interface update
sattvikc Sep 20, 2024
49c51d7
fix: logout api
sattvikc Sep 20, 2024
5aa95fe
fix: ext
sattvikc Sep 20, 2024
64dc34c
fix: accept consent
sattvikc Sep 20, 2024
5582efa
fix: accept consent
sattvikc Sep 20, 2024
d9d4a8d
fix: introspect in token api
sattvikc Sep 20, 2024
bb6c92d
fix: keep fragment while updating query params
sattvikc Sep 23, 2024
c0ec93d
fix: count creds and pr comment
sattvikc Sep 23, 2024
882e172
fix: oauth stats
sattvikc Sep 23, 2024
e9770fa
fix: oauth cleanup cron task
sattvikc Sep 23, 2024
930cd2c
fix: gid in refresh token
sattvikc Sep 24, 2024
c58d162
fix: inememory impl
sattvikc Sep 24, 2024
bec7d4d
feat: add initial payload fields to accept consent
porcellus Sep 24, 2024
70a15a5
fix: revoke cleanup
sattvikc Sep 24, 2024
08d25c9
fix: stats
sattvikc Sep 24, 2024
ea9ed88
fix: client credentials basic
sattvikc Sep 24, 2024
d964272
fix: authorization header
sattvikc Sep 24, 2024
4b327e4
fix: authorizaion header in revoke
sattvikc Sep 24, 2024
e91d8fe
fix: missing table
sattvikc Sep 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: stats
sattvikc committed Sep 24, 2024
commit 08d25c992b717549f7aca0014fc486f626cc6028
2 changes: 1 addition & 1 deletion ee/src/main/java/io/supertokens/ee/EEFeatureFlag.java
Original file line number Diff line number Diff line change
@@ -347,7 +347,7 @@ private JsonObject getOAuthStats() throws StorageQueryException, TenantOrAppNotF
this.appIdentifier.getAsPublicTenantIdentifier(), main));

result.addProperty("totalNumberOfClients", oAuthStorage.countTotalNumberOfClientsForApp(appIdentifier));
result.addProperty("numberOfClientCredentialsOnlyClients", oAuthStorage.countTotalNumberOfClientsForApp(appIdentifier));
result.addProperty("numberOfClientCredentialsOnlyClients", oAuthStorage.countTotalNumberOfClientCredentialsOnlyClientsForApp(appIdentifier));
result.addProperty("numberOfM2MTokensAlive", oAuthStorage.countTotalNumberOfM2MTokensAlive(appIdentifier));

long now = System.currentTimeMillis();
1 change: 0 additions & 1 deletion src/main/java/io/supertokens/inmemorydb/Start.java
Original file line number Diff line number Diff line change
@@ -106,7 +106,6 @@ public class Start
ActiveUsersSQLStorage, DashboardSQLStorage, AuthRecipeSQLStorage, OAuthSQLStorage {

private static final Object appenderLock = new Object();
private static final String APP_ID_KEY_NAME = "app_id";
private static final String ACCESS_TOKEN_SIGNING_KEY_NAME = "access_token_signing_key";
private static final String REFRESH_TOKEN_KEY_NAME = "refresh_token_key";
public static boolean isTesting = false;
Original file line number Diff line number Diff line change
@@ -224,7 +224,7 @@ public static int countTotalNumberOfM2MTokensAlive(Start start, AppIdentifier ap
" WHERE app_id = ? AND exp > ?";
return execute(start, QUERY, pst -> {
pst.setString(1, appIdentifier.getAppId());
pst.setLong(2, System.currentTimeMillis());
pst.setLong(2, System.currentTimeMillis()/1000);
}, result -> {
if (result.next()) {
return result.getInt("c");