public class OpenamAuthentication
extends fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_BACK_URL_ERROR_AGENT |
static String |
PROPERTY_DEFINE_AS_EXTERNAL_AUTHENTICATION |
static String |
PROPERTY_URL_ERROR_LOGIN_AGENT |
| Constructor and Description |
|---|
OpenamAuthentication()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
This method returns an anonymous Lutece user
|
String |
getAuthServiceName()
Gets the Authentification service name
|
String |
getAuthType(javax.servlet.http.HttpServletRequest request)
Gets the Authentification type
|
fr.paris.lutece.portal.service.security.LuteceUser |
getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
Returns a Lutece user object if the user is already authenticated by Openam
|
String |
getIconUrl() |
String |
getLostPasswordPageUrl() |
String |
getName() |
String |
getNewAccountPageUrl() |
String |
getPluginName() |
String |
getViewAccountPageUrl() |
boolean |
isBasedOnHttpAuthentication()
Indicate that the authentication uses only HttpRequest data to authenticate users (ex : Web Server authentication).
|
boolean |
isExternalAuthentication() |
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
Checks that the current user is associated to a given role
|
fr.paris.lutece.portal.service.security.LuteceUser |
login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request)
This methods checks the login info in the base repository
|
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user
|
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getLoginPageUrl, getLostLoginPageUrl, getResetPasswordPageUrl, getRolesByUser, getUser, getUsers, isDelegatedAuthentication, isMultiAuthenticationSupported, isUsersListAvailable, toString, updateDateLastLoginpublic static final String PROPERTY_BACK_URL_ERROR_AGENT
public static final String PROPERTY_URL_ERROR_LOGIN_AGENT
public static final String PROPERTY_DEFINE_AS_EXTERNAL_AUTHENTICATION
public String getAuthServiceName()
public String getAuthType(javax.servlet.http.HttpServletRequest request)
request - The HTTP requestpublic fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException, fr.paris.lutece.portal.service.security.LoginRedirectException
strUserName - The usernamestrUserPassword - The passwordrequest - The HTTP requestLoginException - The LoginExceptionfr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
user - The userpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
user - The userrequest - The HTTP requeststrRole - The role namepublic boolean isBasedOnHttpAuthentication()
public fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetHttpAuthenticatedUser in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationrequest - The HTTP requestpublic String getIconUrl()
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetIconUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getName()
public String getPluginName()
public String getNewAccountPageUrl()
getNewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetNewAccountPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getLostPasswordPageUrl()
getLostPasswordPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetLostPasswordPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getViewAccountPageUrl()
getViewAccountPageUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetViewAccountPageUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic boolean isExternalAuthentication()
isExternalAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationisExternalAuthentication in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationCopyright © 2017 City of Paris. All rights reserved.