Skip to content

Commit

Permalink
fix: logout
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Sep 26, 2024
1 parent 1224ca8 commit a31096d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
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 gid;
public final String state;
public final long timeCreated;

public OAuthLogoutChallenge(String challenge, String clientId, String postLogoutRedirectionUri, String gid, String state, long timeCreated) {
this.challenge = challenge;
this.clientId = clientId;
this.postLogoutRedirectionUri = postLogoutRedirectionUri;
this.gid = gid;
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 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;
}

0 comments on commit a31096d

Please sign in to comment.