public interface AuthCtxManagerRemote
Modifier and Type | Method and Description |
---|---|
CompletionStage<AuthInfo> |
authCtx(AuthCtxEntry authCtx)
Creates an authentication context for future use by long running actions or
retrieves the authentication identifier if a context with the same access token is already created.
|
CompletionStage<Long> |
keepAlive(String authCtxId)
Marks that this authentication context is still in use.
|
CompletionStage<Boolean> |
removeRefreshConfiguration(String serviceInstanceId,
String clientId)
Removes the refresh configuration.
|
CompletionStage<RefreshConfig> |
storeRefreshConfiguration(String serviceInstanceId,
String clientId,
RefreshConfig config)
Stores the refresh configuration.
|
CompletionStage<List<OpenIdInfo>> |
supportedOpenIdProviders()
Returns the supported OAuth providers from AuthCtxManager.
|
CompletionStage<AuthToken> |
token(String authCtxId)
Returns a valid access token.
|
CompletionStage<AuthInfo> authCtx(AuthCtxEntry authCtx)
authCtx
- authentication context.CompletionStage<AuthToken> token(String authCtxId)
authCtxId
- authentication context identifierCompletionStage<Long> keepAlive(String authCtxId)
authCtxId
- authentication context identifier.CompletionStage<RefreshConfig> storeRefreshConfiguration(String serviceInstanceId, String clientId, RefreshConfig config)
serviceInstanceId
- service instance identifierclientId
- client identifierconfig
- configuration for refreshCompletionStage<Boolean> removeRefreshConfiguration(String serviceInstanceId, String clientId)
serviceInstanceId
- service instance identifierclientId
- client identifiertrue
if configuration was removed.CompletionStage<List<OpenIdInfo>> supportedOpenIdProviders()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.