Class ExternalAuthentication
java.lang.Object
fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
fr.paris.lutece.plugins.mylutece.authentication.ExternalAuthentication
- All Implemented Interfaces:
ILuteceUserAttributesProvidedDescription,ILuteceUserRolesProvidedDescription,fr.paris.lutece.portal.service.security.LuteceAuthentication
ExternalAuthentication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfindResetPassword(javax.servlet.http.HttpServletRequest request, String strLogin) Returns the access controled templateReturns the access denied templateReturns the DoLogin URL of the Authentication ServiceReturns the DoLogout URL of the Authentication ServiceReturns the Login page URL of the Authentication ServiceReturns the lost password URL of the Authentication ServiceReturns the new account page URL of the Authentication ServicegetResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request) String[]getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user) get all roles for this user : - user's roles - user's groups rolesfr.paris.lutece.portal.service.security.LuteceUserReturns the user managed by the authentication service if this feature is available.Collection<fr.paris.lutece.portal.service.security.LuteceUser>getUsers()Returns all users managed by the authentication service if this feature is available.Returns the View account page URL of the Authentication ServicebooleanAlways falsebooleanIndicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).booleanReturns falsebooleanTells whether or not the authentication service can provide a list of all its usersvoidupdateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request) Methods inherited from class fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
getHttpAuthenticatedUser, isUserInRole, loginMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.mylutece.service.ILuteceUserAttributesProvidedDescription
getLuteceUserAttributesProvidedMethods inherited from interface fr.paris.lutece.plugins.mylutece.service.ILuteceUserRolesProvidedDescription
getLuteceUserRolesProvidedMethods inherited from interface fr.paris.lutece.portal.service.security.LuteceAuthentication
getAnonymousUser, getAuthServiceName, getAuthType, getName, getPluginName, logout
-
Constructor Details
-
ExternalAuthentication
public ExternalAuthentication()
-
-
Method Details
-
isExternalAuthentication
public boolean isExternalAuthentication()Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).- Returns:
- true if the authentication is external, false if the authentication is provided by the Lutece portal.
-
isDelegatedAuthentication
public boolean isDelegatedAuthentication()Always false- Returns:
- false
-
getLoginPageUrl
Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getDoLoginUrl
Returns the DoLogin URL of the Authentication Service- Returns:
- The URL
-
getDoLogoutUrl
Returns the DoLogout URL of the Authentication Service- Returns:
- The URL
-
getNewAccountPageUrl
Returns the new account page URL of the Authentication Service- Returns:
- The URL
-
getViewAccountPageUrl
Returns the View account page URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordPageUrl
Returns the lost password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginPageUrl
-
getAccessDeniedTemplate
Returns the access denied template- Returns:
- The template
-
getAccessControledTemplate
Returns the access controled template- Returns:
- The template
-
isUsersListAvailable
public boolean isUsersListAvailable()Tells whether or not the authentication service can provide a list of all its users- Returns:
- true if the service can return a users list
-
getUsers
Returns all users managed by the authentication service if this feature is available.- Returns:
- A collection of Lutece users or null if the service doesn't provide a users list
-
getUser
Returns the user managed by the authentication service if this feature is available.- Parameters:
userLogin- user login- Returns:
- A Lutece users or null if the service doesn't provide a user
-
getRolesByUser
get all roles for this user : - user's roles - user's groups roles- Parameters:
user- The user- Returns:
- Array of roles
-
isMultiAuthenticationSupported
public boolean isMultiAuthenticationSupported()Returns false- Returns:
- false
- See Also:
-
LuteceAuthentication.isMultiAuthenticationSupported()
-
getIconUrl
-
findResetPassword
-
getResetPasswordPageUrl
-
updateDateLastLogin
public void updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)
-