Package io.quarkus.oidc
Interface UserInfoCache
- All Known Implementing Classes:
DefaultTokenIntrospectionUserInfoCache
public interface UserInfoCache
UserInfo cache.
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>addUserInfo(String token, UserInfo userInfo, OidcTenantConfig oidcConfig, OidcRequestContext<Void> requestContext) Add a newUserInfoto the cache.io.smallrye.mutiny.Uni<UserInfo>getUserInfo(String token, OidcTenantConfig oidcConfig, OidcRequestContext<UserInfo> requestContext) Get the cachedUserInfo.
-
Method Details
-
addUserInfo
io.smallrye.mutiny.Uni<Void> addUserInfo(String token, UserInfo userInfo, OidcTenantConfig oidcConfig, OidcRequestContext<Void> requestContext) Add a newUserInfoto the cache. -
getUserInfo
io.smallrye.mutiny.Uni<UserInfo> getUserInfo(String token, OidcTenantConfig oidcConfig, OidcRequestContext<UserInfo> requestContext) Get the cachedUserInfo.- Parameters:
token- the token which will be used to get newUserInfoif noUserInfois cached. Effectively this token is a cache key which has to be stored whenaddUserInfo(String, UserInfo, OidcTenantConfig, AddUserInfoRequestContext)is called.oidcConfig- the tenant configurationrequestContext- the request context which can be used to run the blocking tasks
-