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
    • 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