Class OpenIdConnectAutoLogin

  • All Implemented Interfaces:
    com.liferay.portal.security.auth.AutoLogin

    public class OpenIdConnectAutoLogin
    extends com.liferay.portal.security.auth.BaseAutoLogin
    • Field Summary

      • Fields inherited from interface com.liferay.portal.security.auth.AutoLogin

        AUTO_LOGIN_REDIRECT, AUTO_LOGIN_REDIRECT_AND_CONTINUE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static com.liferay.portal.model.User addUser​(long companyId, long groupId, String portalURL, String emailAddress, String firstName, String lastName, String openid, String username)  
      static com.liferay.portal.model.User createOrUpdateUser​(org.gcube.oidc.rest.JWTToken token, long companyId, long groupId, String portalURL, org.gcube.portal.oidc.lr62.LiferayOpenIdConnectConfiguration configuration)  
      String[] doLogin​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      static void saveAvatar​(org.gcube.portal.oidc.lr62.LiferayOpenIdConnectConfiguration configuration, com.liferay.portal.model.User user, org.gcube.oidc.rest.JWTToken token)  
      • Methods inherited from class com.liferay.portal.security.auth.BaseAutoLogin

        doHandleException, handleException, login
    • Constructor Detail

      • OpenIdConnectAutoLogin

        public OpenIdConnectAutoLogin()
    • Method Detail

      • doLogin

        public String[] doLogin​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response)
                         throws Exception
        Specified by:
        doLogin in class com.liferay.portal.security.auth.BaseAutoLogin
        Throws:
        Exception
      • createOrUpdateUser

        public static com.liferay.portal.model.User createOrUpdateUser​(org.gcube.oidc.rest.JWTToken token,
                                                                       long companyId,
                                                                       long groupId,
                                                                       String portalURL,
                                                                       org.gcube.portal.oidc.lr62.LiferayOpenIdConnectConfiguration configuration)
                                                                throws Exception
        Throws:
        Exception
      • addUser

        public static com.liferay.portal.model.User addUser​(long companyId,
                                                            long groupId,
                                                            String portalURL,
                                                            String emailAddress,
                                                            String firstName,
                                                            String lastName,
                                                            String openid,
                                                            String username)
                                                     throws com.liferay.portal.kernel.exception.SystemException,
                                                            com.liferay.portal.kernel.exception.PortalException
        Throws:
        com.liferay.portal.kernel.exception.SystemException
        com.liferay.portal.kernel.exception.PortalException
      • saveAvatar

        public static void saveAvatar​(org.gcube.portal.oidc.lr62.LiferayOpenIdConnectConfiguration configuration,
                                      com.liferay.portal.model.User user,
                                      org.gcube.oidc.rest.JWTToken token)