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
public abstract class ExternalAuthentication extends AbstractAuthentication
ExternalAuthentication.
-
-
Constructor Summary
Constructors Constructor Description ExternalAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfindResetPassword(javax.servlet.http.HttpServletRequest request, java.lang.String strLogin)java.lang.StringgetAccessControledTemplate()Returns the access controled templatejava.lang.StringgetAccessDeniedTemplate()Returns the access denied templatejava.lang.StringgetDoLoginUrl()Returns the DoLogin URL of the Authentication Servicejava.lang.StringgetDoLogoutUrl()Returns the DoLogout URL of the Authentication Servicejava.lang.StringgetIconUrl()java.lang.StringgetLoginPageUrl()Returns the Login page URL of the Authentication Servicejava.lang.StringgetLostLoginPageUrl()java.lang.StringgetLostPasswordPageUrl()Returns the lost password URL of the Authentication Servicejava.lang.StringgetNewAccountPageUrl()Returns the new account page URL of the Authentication Servicejava.lang.StringgetResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request)java.lang.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.LuteceUsergetUser(java.lang.String userLogin)Returns the user managed by the authentication service if this feature is available.java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser>getUsers()Returns all users managed by the authentication service if this feature is available.java.lang.StringgetViewAccountPageUrl()Returns the View account page URL of the Authentication ServicebooleanisDelegatedAuthentication()Always falsebooleanisExternalAuthentication()Indicates that the user should be already authenticated by an external authentication service (ex : Web Server authentication).booleanisMultiAuthenticationSupported()Returns falsebooleanisUsersListAvailable()Tells 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, login
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.paris.lutece.plugins.mylutece.service.ILuteceUserAttributesProvidedDescription
getLuteceUserAttributesProvided
-
Methods inherited from interface fr.paris.lutece.plugins.mylutece.service.ILuteceUserRolesProvidedDescription
getLuteceUserRolesProvided
-
-
-
-
Method Detail
-
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
public java.lang.String getLoginPageUrl()
Returns the Login page URL of the Authentication Service- Returns:
- The URL
-
getDoLoginUrl
public java.lang.String getDoLoginUrl()
Returns the DoLogin URL of the Authentication Service- Returns:
- The URL
-
getDoLogoutUrl
public java.lang.String getDoLogoutUrl()
Returns the DoLogout URL of the Authentication Service- Returns:
- The URL
-
getNewAccountPageUrl
public java.lang.String getNewAccountPageUrl()
Returns the new account page URL of the Authentication Service- Returns:
- The URL
-
getViewAccountPageUrl
public java.lang.String getViewAccountPageUrl()
Returns the View account page URL of the Authentication Service- Returns:
- The URL
-
getLostPasswordPageUrl
public java.lang.String getLostPasswordPageUrl()
Returns the lost password URL of the Authentication Service- Returns:
- The URL
-
getLostLoginPageUrl
public java.lang.String getLostLoginPageUrl()
-
getAccessDeniedTemplate
public java.lang.String getAccessDeniedTemplate()
Returns the access denied template- Returns:
- The template
-
getAccessControledTemplate
public java.lang.String 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
public java.util.Collection<fr.paris.lutece.portal.service.security.LuteceUser> 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
public fr.paris.lutece.portal.service.security.LuteceUser getUser(java.lang.String userLogin)
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
public java.lang.String[] getRolesByUser(fr.paris.lutece.portal.service.security.LuteceUser user)
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
public java.lang.String getIconUrl()
-
findResetPassword
public boolean findResetPassword(javax.servlet.http.HttpServletRequest request, java.lang.String strLogin)
-
getResetPasswordPageUrl
public java.lang.String getResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request)
-
updateDateLastLogin
public void updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)
-
-