public class Oauth2Authentication extends fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication implements Serializable
Constructor and Description |
---|
Oauth2Authentication() |
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() |
List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription> |
getLuteceUserAttributesProvided(Locale locale) |
String |
getName() |
String |
getPluginName() |
boolean |
isMultiAuthenticationSupported() |
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
This methods logout the user
|
fr.paris.lutece.portal.service.security.LuteceUser |
processLogin(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request)
This methods checks the login info in the LDAP repository
|
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getLoginPageUrl, getLostLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getRolesByUser, getUser, getUsers, getViewAccountPageUrl, isDelegatedAuthentication, isExternalAuthentication, isUsersListAvailable, toString, updateDateLastLogin
isUserInRole, login
public String getAuthServiceName()
getAuthServiceName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public String getAuthType(javax.servlet.http.HttpServletRequest request)
getAuthType
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
request
- The HTTP requestpublic fr.paris.lutece.portal.service.security.LuteceUser processLogin(String strUserName, String strUserPassword, javax.servlet.http.HttpServletRequest request) throws LoginException, fr.paris.lutece.portal.service.security.LoginRedirectException
processLogin
in class fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
strUserName
- The usernamestrUserPassword
- The passwordrequest
- The HttpServletRequestfr.paris.lutece.portal.service.security.LoginRedirectException
- This exception is used to redirect the authentication to the providerLoginException
- The LoginExceptionpublic void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
logout
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
user
- The userpublic fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
getAnonymousUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public String getIconUrl()
getIconUrl
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getIconUrl
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public String getName()
getName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public String getPluginName()
getPluginName
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
public boolean isMultiAuthenticationSupported()
isMultiAuthenticationSupported
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
isMultiAuthenticationSupported
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
getHttpAuthenticatedUser
in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getHttpAuthenticatedUser
in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
request
- The HTTP requestpublic List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription> getLuteceUserAttributesProvided(Locale locale)
getLuteceUserAttributesProvided
in interface fr.paris.lutece.plugins.mylutece.service.ILuteceUserAttributesProvidedDescription
Copyright © 2022 City of Paris. All rights reserved.