Class OauthControllerConfigurationProperties

  • All Implemented Interfaces:
    io.micronaut.core.util.Toggleable, io.micronaut.security.endpoints.ControllerConfiguration, OauthControllerConfiguration

    @Requires(property="micronaut.security.endpoints.oauth.enabled",
              notEquals="false",
              defaultValue="true")
    @ConfigurationProperties("micronaut.security.endpoints.oauth")
    public class OauthControllerConfigurationProperties
    extends java.lang.Object
    implements OauthControllerConfiguration
    Configures the provided OauthController.
    Since:
    1.0
    • Field Detail

      • DEFAULT_ENABLED

        public static final boolean DEFAULT_ENABLED
        The default enable value.
        See Also:
        Constant Field Values
      • DEFAULT_PATH

        public static final java.lang.String DEFAULT_PATH
        The default path.
        See Also:
        Constant Field Values
      • DEFAULT_GETALLOWED

        public static final boolean DEFAULT_GETALLOWED
        Default Get Allowed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OauthControllerConfigurationProperties

        public OauthControllerConfigurationProperties()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface io.micronaut.core.util.Toggleable
        Returns:
        true if you want to enable the OauthController
      • getPath

        @NonNull
        public java.lang.String getPath()
        Specified by:
        getPath in interface io.micronaut.security.endpoints.ControllerConfiguration
      • setEnabled

        public void setEnabled​(boolean enabled)
        Sets whether the OauthController is enabled. Default value (true).
        Parameters:
        enabled - True if is enabled
      • setGetAllowed

        public void setGetAllowed​(boolean getAllowed)
        Enables HTTP GET invocations of refresh token requests. Only applies to requests sending a cookie (JWT_REFRESH_TOKEN). Default value (true).
        Parameters:
        getAllowed - Whether Http GET should be supported.