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 newUserInfo
to 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 newUserInfo
to 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 newUserInfo
if noUserInfo
is 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
-