Package io.quarkus.oidc
Interface UserInfoCache
-
- All Known Implementing Classes:
DefaultTokenIntrospectionUserInfoCache
public interface UserInfoCache
UserInfo cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.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 Detail
-
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 when#addUserInfo(String, UserInfo, OidcTenantConfig, AddUserInfoRequestContext)
is called.oidcConfig
- the tenant configurationrequestContext
- the request context which can be used to run the blocking tasks
-
-