public class CrowdAuthenticationInterceptor extends Object implements com.opensymphony.xwork2.interceptor.Interceptor
web.xml
url-pattern
. If the requesting principal does
not have a valid token, they will be redirected to the authentication path specified in the crowd.properties
configuration file. Additional values are stored to the principal's session such as their originally requested
URL should their authentication be found invalid.Modifier and Type | Field and Description |
---|---|
static String |
ORIGINAL_URL
The session key stored as a
String , is the
requested secure url before redirect to the authentication
page. |
Constructor and Description |
---|
CrowdAuthenticationInterceptor()
Use this default constructor if you are not
using an IoC managed HttpAuthenticator/SecurityServerClient.
|
CrowdAuthenticationInterceptor(HttpAuthenticator httpAuthenticator)
Use this constructor to provide an externally managed
singleton instance of the HttpAuthenticator.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init() |
String |
intercept(com.opensymphony.xwork2.ActionInvocation actionInvocation) |
public static final String ORIGINAL_URL
String
, is the
requested secure url before redirect to the authentication
page.public CrowdAuthenticationInterceptor()
public CrowdAuthenticationInterceptor(HttpAuthenticator httpAuthenticator)
This should be used if you are using an IoC container to manage the HttpAuthenticator/SecurityServerClient instances. This should NOT be used if you are using the HttpAuthenticatorFactory or SecurityServerClientFactory anywhere in your application.
httpAuthenticator
- externally managed singleton.Copyright © 2021 Atlassian. All rights reserved.