Class SocialAuthNModelImpl

    • Constructor Detail

      • SocialAuthNModelImpl

        public SocialAuthNModelImpl​(jakarta.servlet.http.HttpServletRequest req,
                                    Map map)
    • Method Detail

      • getDefaultRedirectUrl

        public String getDefaultRedirectUrl()
        Description copied from interface: SocialAuthNModel
        The default URL to use for the OAuth2 redirect proxy. This makes a best-effort guess based on the server configuration, but the user may have to override it to account for load balancers etc.
        Specified by:
        getDefaultRedirectUrl in interface SocialAuthNModel
        Returns:
        The default redirect URL.
      • isKnownProvider

        public boolean isKnownProvider()
        Description copied from interface: SocialAuthNModel
        Indicates whether the provider has known settings or not. This controls whether we display additional fields.
        Specified by:
        isKnownProvider in interface SocialAuthNModel
        Returns:
        true if this is a known social authn provider or false if manual config is required.
      • getProviderDisplayName

        public String getProviderDisplayName()
        Description copied from interface: SocialAuthNModel
        Get the name of this social authn provider suitable for display to a user.
        Specified by:
        getProviderDisplayName in interface SocialAuthNModel
        Returns:
        the (possibly localized) name of the authn provider.
      • getLocalizedProviderHelpMessage

        public String getLocalizedProviderHelpMessage()
        Description copied from interface: SocialAuthNModel
        A localized message describing how to register with this particular social authentication provider. This is localized per provider to allow more detailed help messages to be given. If the provider is not known then this method returns null and some default message should be used.
        Specified by:
        getLocalizedProviderHelpMessage in interface SocialAuthNModel
        Returns:
        a localized help message for the provider, or null if provider unknown.