public class IdpAuthProvider extends java.lang.Object implements CubaAuthProvider
Modifier and Type | Class and Description |
---|---|
static class |
IdpAuthProvider.IdpActivationException |
static class |
IdpAuthProvider.IdpServletRequestWrapper |
static interface |
IdpAuthProvider.IdpSessionPrincipal |
static class |
IdpAuthProvider.IdpSessionPrincipalImpl |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDP_SESSION_ATTRIBUTE |
static java.lang.String |
IDP_SESSION_LOCK_ATTRIBUTE |
static java.lang.String |
IDP_TICKET_REQUEST_PARAM |
NAME
Constructor and Description |
---|
IdpAuthProvider() |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(java.lang.String login,
java.lang.String password,
java.util.Locale locale)
Login procedure with user and password.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
java.lang.String |
logout()
Logout from external authentication
|
void |
pingUserSession(UserSession session)
Send ping to identity provider if supported by auth provider.
|
void |
userSessionLoggedIn(UserSession session)
Handler for user session logged in event.
|
public static final java.lang.String IDP_SESSION_ATTRIBUTE
public static final java.lang.String IDP_SESSION_LOCK_ATTRIBUTE
public static final java.lang.String IDP_TICKET_REQUEST_PARAM
public void authenticate(java.lang.String login, java.lang.String password, java.util.Locale locale) throws LoginException
CubaAuthProvider
authenticate
in interface CubaAuthProvider
login
- User loginpassword
- User passwordlocale
- Locale for error messagesLoginException
- Login exceptionpublic void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void userSessionLoggedIn(UserSession session)
CubaAuthProvider
userSessionLoggedIn
in interface CubaAuthProvider
session
- user sessionpublic void pingUserSession(UserSession session)
CubaAuthProvider
pingUserSession
in interface CubaAuthProvider
session
- user sessionpublic java.lang.String logout()
CubaAuthProvider
logout
in interface CubaAuthProvider
public void destroy()
destroy
in interface javax.servlet.Filter