Class Oauth2DataClientBeansProducer
java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.oauth2.service.Oauth2DataClientBeansProducer
CDI Producer for OAuth2 DataClient-related beans
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproduceAuthDataClient(Optional<String> dataServerUri, Optional<String> tokenMethod, Optional<String> scopes, Optional<Boolean> isDefault) Produces the AuthDataClient beanproduceAuthDataClientJson(Optional<String> dataServerUri, Optional<String> tokenMethod, Optional<String> scopes, Optional<Boolean> isDefault) Produces the AuthDataClientJson bean
-
Constructor Details
-
Oauth2DataClientBeansProducer
public Oauth2DataClientBeansProducer()Default constructor for CDI
-
-
Method Details
-
produceAuthDataClient
@Produces @ApplicationScoped @Named("mylutece-oauth2.authDataClient") public AuthDataClient produceAuthDataClient(Optional<String> dataServerUri, Optional<String> tokenMethod, Optional<String> scopes, Optional<Boolean> isDefault) Produces the AuthDataClient bean- Parameters:
dataServerUri- The data server URItokenMethod- The token method (e.g., HEADER)scopes- The scopes as comma-separated stringisDefault- Whether this is the default data client- Returns:
- The AuthDataClient instance
-
produceAuthDataClientJson
@Produces @ApplicationScoped @Named("mylutece-oauth2.authDataClientJson") public AuthDataClientJson produceAuthDataClientJson(Optional<String> dataServerUri, Optional<String> tokenMethod, Optional<String> scopes, Optional<Boolean> isDefault) Produces the AuthDataClientJson bean- Parameters:
dataServerUri- The data server URItokenMethod- The token method (e.g., HEADER)scopes- The scopes as comma-separated stringisDefault- Whether this is the default data client- Returns:
- The AuthDataClientJson instance
-