All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.oidc.token.propagation.reactive.OidcTokenPropagationReactiveConfig Maven / Gradle / Ivy

Go to download

Use REST Client to propagate the incoming Bearer access token or token acquired from Authorization Code Flow as HTTP Authorization Bearer token

There is a newer version: 3.17.0
Show newest version
package io.quarkus.oidc.token.propagation.reactive;

import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;

@ConfigMapping(prefix = "quarkus.rest-client-oidc-token-propagation")
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
public interface OidcTokenPropagationReactiveConfig {
    /**
     * Exchange the current token with OpenId Connect Provider for a new token using either
     * "urn:ietf:params:oauth:grant-type:token-exchange" or "urn:ietf:params:oauth:grant-type:jwt-bearer" token grant
     * before propagating it.
     */
    @WithDefault("false")
    boolean exchangeToken();

    /**
     * Name of the configured OidcClient.
     *
     * Note this property is only used if the `exchangeToken` property is enabled.
     */
    Optional clientName();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy