27
27
28
28
public interface OAuthStorage extends NonAuthRecipeStorage {
29
29
30
- public boolean doesOAuthClientIdExist (AppIdentifier appIdentifier , String clientId ) throws
31
- StorageQueryException ;
30
+ public OAuthClient getOAuthClientById (AppIdentifier appIdentifier , String clientId ) throws
31
+ OAuthClientNotFoundException , StorageQueryException ;
32
32
33
- public void addOrUpdateOauthClient (AppIdentifier appIdentifier , String clientId , boolean isClientCredentialsOnly ) throws TenantOrAppNotFoundException , StorageQueryException ;
33
+ public void addOrUpdateOauthClient (AppIdentifier appIdentifier , String clientId , String clientSecret , boolean isClientCredentialsOnly , boolean enableRefreshTokenRotation ) throws TenantOrAppNotFoundException , StorageQueryException ;
34
34
35
35
public boolean deleteOAuthClient (AppIdentifier appIdentifier , String clientId ) throws StorageQueryException ;
36
36
37
- public List <String > listOAuthClients (AppIdentifier appIdentifier ) throws StorageQueryException ;
38
-
39
- public void revokeOAuthTokensBasedOnTargetFields (AppIdentifier appIdentifier , OAuthRevokeTargetType targetType , String targetValue , long exp ) throws TenantOrAppNotFoundException , StorageQueryException ;
40
-
41
- public boolean isOAuthTokenRevokedBasedOnTargetFields (AppIdentifier appIdentifier , OAuthRevokeTargetType [] targetTypes , String [] targetValues , long issuedAt ) throws StorageQueryException ;
37
+ public List <OAuthClient > getOAuthClients (AppIdentifier appIdentifier , List <String > clientIds ) throws StorageQueryException ;
42
38
43
39
public void addOAuthM2MTokenForStats (AppIdentifier appIdentifier , String clientId , long iat , long exp ) throws OAuthClientNotFoundException , StorageQueryException ;
44
40
45
- public void cleanUpExpiredAndRevokedOAuthTokensList ( ) throws StorageQueryException ;
41
+ public void deleteExpiredOAuthM2MTokens ( long exp ) throws StorageQueryException ;
46
42
47
43
public void addOAuthLogoutChallenge (AppIdentifier appIdentifier , String challenge , String clientId , String postLogoutRedirectionUri , String sessionHandle , String state , long timeCreated ) throws
48
44
DuplicateOAuthLogoutChallengeException , OAuthClientNotFoundException , StorageQueryException ;
@@ -53,11 +49,30 @@ public void addOAuthLogoutChallenge(AppIdentifier appIdentifier, String challeng
53
49
54
50
public void deleteOAuthLogoutChallengesBefore (long time ) throws StorageQueryException ;
55
51
52
+ public void createOrUpdateOAuthSession (AppIdentifier appIdentifier , String gid , String clientId , String externalRefreshToken , String internalRefreshToken , String sessionHandle , List <String > jtis , long exp ) throws StorageQueryException , OAuthClientNotFoundException ;
53
+
54
+ public String getRefreshTokenMapping (AppIdentifier appIdentifier , String externalRefreshToken ) throws StorageQueryException ;
55
+
56
+ public void deleteExpiredOAuthSessions (long exp ) throws StorageQueryException ;
57
+
56
58
public int countTotalNumberOfOAuthClients (AppIdentifier appIdentifier ) throws StorageQueryException ;
57
59
58
60
public int countTotalNumberOfClientCredentialsOnlyOAuthClients (AppIdentifier appIdentifier ) throws StorageQueryException ;
59
61
60
62
public int countTotalNumberOfOAuthM2MTokensCreatedSince (AppIdentifier appIdentifier , long since ) throws StorageQueryException ;
61
63
62
64
public int countTotalNumberOfOAuthM2MTokensAlive (AppIdentifier appIdentifier ) throws StorageQueryException ;
65
+
66
+ public boolean revokeOAuthTokenByGID ( AppIdentifier appIdentifier , String gid ) throws StorageQueryException ;
67
+
68
+ public boolean revokeOAuthTokenByClientId (AppIdentifier appIdentifier , String clientId ) throws StorageQueryException ;
69
+
70
+ public boolean revokeOAuthTokenBySessionHandle (AppIdentifier appIdentifier , String sessionHandle ) throws StorageQueryException ;
71
+
72
+ public boolean revokeOAuthTokenByJTI (AppIdentifier appIdentifier , String gid , String jti ) throws StorageQueryException ;
73
+
74
+ public boolean isOAuthTokenRevokedByJTI (AppIdentifier appIdentifier , String gid , String jti ) throws StorageQueryException ;
75
+
76
+ public boolean isOAuthTokenRevokedByGID (AppIdentifier appIdentifier , String gid ) throws StorageQueryException ;
63
77
}
78
+
0 commit comments