Class OAuth2RuntimeConfig


  • @ConfigRoot(name="oauth2",
                phase=RUN_TIME)
    public class OAuth2RuntimeConfig
    extends Object
    See https://docs.wildfly.org/14/WildFly_Elytron_Security.html#validating-oauth2-bearer-tokens
    • Field Detail

      • clientId

        @ConfigItem
        public Optional<String> clientId
        The OAuth2 client id used to validate the token. Mandatory if the extension is enabled.
      • clientSecret

        @ConfigItem
        public Optional<String> clientSecret
        The OAuth2 client secret used to validate the token. Mandatory if the extension is enabled.
      • introspectionUrl

        @ConfigItem
        public Optional<String> introspectionUrl
        The OAuth2 introspection endpoint URL used to validate the token and gather the authentication claims. Mandatory if the extension is enabled.
      • caCertFile

        @ConfigItem
        public Optional<String> caCertFile
        The OAuth2 server certificate file. Warning: this is not supported in native mode where the certificate must be included in the truststore used during the native image generation, see Using SSL With Native Executables.
    • Constructor Detail

      • OAuth2RuntimeConfig

        public OAuth2RuntimeConfig()