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: logout #161

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.supertokens.pluginInterface.oauth;

public class OAuthLogoutChallenge {
public final String challenge;
public final String clientId;
public final String postLogoutRedirectionUri;
public final String sessionHandle;
public final String state;
public final long timeCreated;

public OAuthLogoutChallenge(String challenge, String clientId, String postLogoutRedirectionUri, String sessionHandle, String state, long timeCreated) {
this.challenge = challenge;
this.clientId = clientId;
this.postLogoutRedirectionUri = postLogoutRedirectionUri;
this.sessionHandle = sessionHandle;
this.state = state;
this.timeCreated = timeCreated;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,12 @@ public boolean doesClientIdExistForApp(AppIdentifier appIdentifier, String clien
public int countTotalNumberOfM2MTokensAlive(AppIdentifier appIdentifier) throws StorageQueryException;

public void cleanUpExpiredAndRevokedTokens(AppIdentifier appIdentifier) throws StorageQueryException;

public void addLogoutChallenge(AppIdentifier appIdentifier, String challenge, String clientId, String postLogoutRedirectionUri, String sessionHandle, String state, long timeCreated) throws StorageQueryException;

public OAuthLogoutChallenge getLogoutChallenge(AppIdentifier appIdentifier, String challenge) throws StorageQueryException;

public void deleteLogoutChallenge(AppIdentifier appIdentifier, String challenge) throws StorageQueryException;

public void deleteLogoutChallengesBefore(AppIdentifier appIdentifier, long time) throws StorageQueryException;
}
Loading