Class UserAccountsFirstTimeExternalPage


  • public class UserAccountsFirstTimeExternalPage
    extends UserAccountsPage
    Handle the first-time login of an Externally Authenticated user who has no UserAccount - let's create one! If they get here from the login, there should be an ExternalLoginInfo waiting in the session. Otherwise, they should get here by submitting the form, which will have the info in hidden fields.
    • Constructor Detail

      • UserAccountsFirstTimeExternalPage

        protected UserAccountsFirstTimeExternalPage​(VitroRequest vreq)
    • Method Detail

      • setExternalLoginInfo

        public static void setExternalLoginInfo​(javax.servlet.http.HttpServletRequest req,
                                                String externalAuthId,
                                                String afterLoginUrl)
        Let some other request set the External Auth ID and the afterLogin URL before redirecting to here.
      • isBogus

        public boolean isBogus()
      • getBogusMessage

        public String getBogusMessage()
      • isSubmit

        public boolean isSubmit()
      • isValid

        public boolean isValid()
      • getAfterLoginUrl

        public String getAfterLoginUrl()
        If the afterLoginUrl is missing, go to the home page. If it is relative, make sure it doesn't start with the cotext path.