public class OIDCUmaUtil extends Object
| Constructor and Description |
|---|
OIDCUmaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkUMATicketAndProvideInThreadLocal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.liferay.portal.model.User user,
javax.servlet.http.HttpSession session,
String scope) |
protected static void |
forceLogout(javax.servlet.http.HttpServletResponse response) |
static org.gcube.oidc.rest.JWTToken |
getUMAToken(javax.servlet.http.HttpServletRequest request,
Long userId,
String scope)
Used to request a temporary UMA/RPT token to the OIDC server in a specific context for an user.
|
static org.gcube.oidc.rest.JWTToken |
getUMAToken(javax.servlet.http.HttpServletRequest request,
String screenName,
String scope)
Used to request a temporary UMA/RPT token to the OIDC server in a specific context for an user.
|
static org.gcube.oidc.rest.JWTToken |
getUMAToken(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.model.User user,
String scope) |
static void |
provideClientUMATokenInThreadLocal(String clientId,
String clientSecret,
URL tokenURL,
String infraContext) |
static void |
provideClientUMATokenInThreadLocal(String clientAuthorizationBearer,
URL tokenURL,
String infraContext) |
static void |
provideConfiguredPortalClientUMATokenInThreadLocal(String infraContext) |
public static void provideConfiguredPortalClientUMATokenInThreadLocal(String infraContext)
public static void provideClientUMATokenInThreadLocal(String clientId, String clientSecret, URL tokenURL, String infraContext)
public static void provideClientUMATokenInThreadLocal(String clientAuthorizationBearer, URL tokenURL, String infraContext)
public static org.gcube.oidc.rest.JWTToken getUMAToken(javax.servlet.http.HttpServletRequest request,
Long userId,
String scope)
throws UMAException,
InvalidTokenException,
MissingTokenException,
RefreshException,
NotAuthorizedException
JWTCacheProxy for the user in the current session will be used.request - the current HTTP requestscreenName - the user's user idscope - the scope to issue the token for (e.g. "/gcube")UMAException - if a generic error related to the UMA/RPT token issue occursInvalidTokenException - if the OIDC access token is become invalid for the userMissingTokenException - if the OIDC token is missing for the user in the cache proxyRefreshException - if an error occurs refreshing the OIDC token that is expiredNotAuthorizedException - if the user is not authorized to access the requested contextpublic static org.gcube.oidc.rest.JWTToken getUMAToken(javax.servlet.http.HttpServletRequest request,
String screenName,
String scope)
throws UMAException,
InvalidTokenException,
MissingTokenException,
RefreshException,
NotAuthorizedException
JWTCacheProxy for the user in the current session will be used.request - the current HTTP requestscreenName - the user's screen namescope - the scope to issue the token for (e.g. "/gcube")UMAException - if a generic error related to the UMA/RPT token issue occursInvalidTokenException - if the OIDC access token is become invalid for the userMissingTokenException - if the OIDC token is missing for the user in the cache proxyRefreshException - if an error occurs refreshing the OIDC token that is expiredNotAuthorizedException - if the user is not authorized to access the requested contextpublic static org.gcube.oidc.rest.JWTToken getUMAToken(javax.servlet.http.HttpServletRequest request,
com.liferay.portal.model.User user,
String scope)
throws InvalidTokenException,
MissingTokenException,
RefreshException,
NotAuthorizedException,
UMAException
public static void checkUMATicketAndProvideInThreadLocal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
com.liferay.portal.model.User user,
javax.servlet.http.HttpSession session,
String scope)
protected static void forceLogout(javax.servlet.http.HttpServletResponse response)
Copyright © 2021. All Rights Reserved.