TF-571 Add method to OIDCRepository to store/get OIDC in cache

This commit is contained in:
Dat PHAM HOANG
2022-05-31 14:27:40 +07:00
committed by Dat H. Pham
parent ff6e6d8878
commit 03777be4a8
2 changed files with 8 additions and 0 deletions
@@ -7,4 +7,8 @@ abstract class AuthenticationOIDCDataSource {
Future<OIDCConfiguration> getOIDCConfiguration(Uri baseUri, OIDCResponse oidcResponse);
Future<TokenOIDC> getTokenOIDC(String clientId, String redirectUrl, String discoveryUrl, List<String> scopes);
Future<void> persistTokenOIDC(TokenOIDC tokenOidc);
Future<TokenOIDC> getStoredTokenOIDC(String tokenIdHash);
}
@@ -7,4 +7,8 @@ abstract class AuthenticationOIDCRepository {
Future<OIDCConfiguration> getOIDCConfiguration(Uri baseUri, OIDCResponse oidcResponse);
Future<TokenOIDC> getTokenOIDC(String clientId, String redirectUrl, String discoveryUrl, List<String> scopes);
Future<void> persistTokenOIDC(TokenOIDC tokenOidc);
Future<TokenOIDC> getStoredTokenOIDC(String tokenIdHash);
}