Package org.gatein.sso.agent.filter
Class OpenSSOCDLoginRedirectFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
org.gatein.sso.agent.filter.LoginRedirectFilter
org.gatein.sso.agent.filter.OpenSSOCDLoginRedirectFilter
- All Implemented Interfaces:
javax.servlet.Filter,SSOInterceptor
Filter is used for redirection to OpenSSO CDCServlet. It is intended to be used in Cross-Domain authentication scenario
when GateIn and OpenSSO servers are in different DNS domains.
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
PORTAL_CONTAINER_SUBSTITUTION_PATTERNFields inherited from class org.exoplatform.container.web.AbstractFilter
config, servletContextName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetLoginRedirectURL(javax.servlet.http.HttpServletRequest httpRequest) Constructs URL for redirection to OpenSSO CDCServlet.voidinitImpl()This method needs to be implemented by conrete filter.Methods inherited from class org.gatein.sso.agent.filter.LoginRedirectFilter
destroy, doFilterMethods inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
afterInit, getExoContainer, getInitParameter, initWithParamsMethods inherited from class org.exoplatform.container.web.AbstractFilter
getContainer, getServletContext, init, requirePortalEnvironmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.Filter
init
-
Constructor Details
-
OpenSSOCDLoginRedirectFilter
public OpenSSOCDLoginRedirectFilter()
-
-
Method Details
-
initImpl
public void initImpl()Description copied from class:AbstractSSOInterceptorThis method needs to be implemented by conrete filter. Filter should obtain it's init parameters by callingAbstractSSOInterceptor.getInitParameter(String). This works in both types of initialization (Case1: Filter initialization through kernel, Case2: initialization through servlet API)- Overrides:
initImplin classLoginRedirectFilter
-
getLoginRedirectURL
Constructs URL for redirection to OpenSSO CDCServlet. It will be something like:http://localhost:8888/opensso/cdcservlet?realm=gatein&goto=http://opensso.local.network:8080/portal/initiatessologin& ProviderID=http://opensso.local.network:8080/portal/initiatessologin/?Realm=ggatein &RequestID=124&IssueInstant=2012-04-10T23:28:50Z&MajorVersion=1&MinorVersion=0- Overrides:
getLoginRedirectURLin classLoginRedirectFilter- Returns:
- url for redirection
-