Class OidcClientConfig

    • Field Detail

      • id

        @ConfigItem
        public Optional<String> id
        A unique OIDC client identifier. It must be set when OIDC clients are created dynamically and is optional in all other cases.
      • clientEnabled

        @ConfigItem(defaultValue="true")
        public boolean clientEnabled
        If this client configuration is enabled.
      • refreshTokenTimeSkew

        @ConfigItem
        public Optional<Duration> refreshTokenTimeSkew
        Refresh token time skew in seconds. If this property is enabled then the configured number of seconds is added to the current time when checking whether the access token should be refreshed. If the sum is greater than this access token's expiration time then a refresh is going to happen.
      • absoluteExpiresIn

        @ConfigItem(defaultValue="false")
        public boolean absoluteExpiresIn
        If the access token 'expires_in' property should be checked as an absolute time value as opposed to a duration relative to the current time.
      • earlyTokensAcquisition

        @ConfigItem(defaultValue="true")
        public boolean earlyTokensAcquisition
        Requires that all filters which use 'OidcClient' acquire the tokens at the post-construct initialization time, possibly long before these tokens are used. This property should be disabled if the access token may expire before it is used for the first time and no refresh token is available.
    • Constructor Detail

      • OidcClientConfig

        public OidcClientConfig()
    • Method Detail

      • setId

        public void setId​(String id)
      • isClientEnabled

        public boolean isClientEnabled()
      • setClientEnabled

        public void setClientEnabled​(boolean clientEnabled)
      • setScopes

        public void setScopes​(List<String> scopes)
      • setRefreshTokenTimeSkew

        public void setRefreshTokenTimeSkew​(Duration refreshTokenTimeSkew)
      • isAbsoluteExpiresIn

        public boolean isAbsoluteExpiresIn()
      • setAbsoluteExpiresIn

        public void setAbsoluteExpiresIn​(boolean absoluteExpiresIn)