Class PortalAuthentication

java.lang.Object
fr.paris.lutece.plugins.mylutece.authentication.AbstractAuthentication
fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
All Implemented Interfaces:
ILuteceUserAttributesProvidedDescription, ILuteceUserRolesProvidedDescription, fr.paris.lutece.portal.service.security.LuteceAuthentication

public abstract class PortalAuthentication extends AbstractAuthentication
PortalAuthentication : default authentication
  • Constructor Details

    • PortalAuthentication

      public PortalAuthentication()
  • 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()
    • getLoginPageUrl

      public String getLoginPageUrl()
    • getDoLoginUrl

      public String getDoLoginUrl()
    • findResetPassword

      public boolean findResetPassword(javax.servlet.http.HttpServletRequest request, String strLogin)
    • getResetPasswordPageUrl

      public String getResetPasswordPageUrl(javax.servlet.http.HttpServletRequest request)
    • getNewAccountPageUrl

      public String getNewAccountPageUrl()
      Returns the new account page URL of the Authentication Service
      Returns:
      The URL
    • getViewAccountPageUrl

      public String getViewAccountPageUrl()
      Returns the View account page URL of the Authentication Service
      Returns:
      The URL
    • getLostPasswordPageUrl

      public String getLostPasswordPageUrl()
    • getLostLoginPageUrl

      public String getLostLoginPageUrl()
    • getDoLogoutUrl

      public String getDoLogoutUrl()
      Returns the disconnect URL of the Authentication Service
      Returns:
      The URL
    • getHttpAuthenticatedUser

      public fr.paris.lutece.portal.service.security.LuteceUser getHttpAuthenticatedUser(javax.servlet.http.HttpServletRequest request)
      Returns a Lutece user object if the user is already authenticated in the Http request. This method should return null if the user is not authenticated or if the authentication service is not based on Http authentication.
      Specified by:
      getHttpAuthenticatedUser in interface fr.paris.lutece.portal.service.security.LuteceAuthentication
      Overrides:
      getHttpAuthenticatedUser in class AbstractAuthentication
      Parameters:
      request - The HTTP request
      Returns:
      Returns A Lutece User
    • getAccessDeniedTemplate

      public String getAccessDeniedTemplate()
      Returns the access denied template
      Returns:
      The template
    • getAccessControledTemplate

      public 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 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(String strUserLogin)
      Returns the user managed by the authentication service if this feature is available.
      Parameters:
      strUserLogin - user login
      Returns:
      A Lutece users or null if the service doesn't provide a user
    • getRolesByUser

      public 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()
      Return false
      Returns:
      false
      See Also:
      • LuteceAuthentication.isMultiAuthenticationSupported()
    • getIconUrl

      public String getIconUrl()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • updateDateLastLogin

      public void updateDateLastLogin(fr.paris.lutece.portal.service.security.LuteceUser user, javax.servlet.http.HttpServletRequest request)