Interface SocialAuthNModel

  • All Superinterfaces:
    AMAdminConstants, AMModel
    All Known Implementing Classes:
    SocialAuthNModelImpl

    public interface SocialAuthNModel
    extends AMModel
    Model class for common tasks involved in configuring social authentication providers (Google, Facebook etc).
    Since:
    12.0.0
    • Method Detail

      • getDefaultRedirectUrl

        String getDefaultRedirectUrl()
        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.
        Returns:
        The default redirect URL.
      • isKnownProvider

        boolean isKnownProvider()
        Indicates whether the provider has known settings or not. This controls whether we display additional fields.
        Returns:
        true if this is a known social authn provider or false if manual config is required.
      • getProviderDisplayName

        String getProviderDisplayName()
        Get the name of this social authn provider suitable for display to a user.
        Returns:
        the (possibly localized) name of the authn provider.
      • getLocalizedProviderHelpMessage

        String getLocalizedProviderHelpMessage()
        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.
        Returns:
        a localized help message for the provider, or null if provider unknown.