Class XsuaaTokenFlowAutoConfiguration
java.lang.Object
com.sap.cloud.security.xsuaa.autoconfiguration.XsuaaTokenFlowAutoConfiguration
@Configuration
@ConditionalOnClass(com.sap.cloud.security.xsuaa.tokenflows.XsuaaTokenFlows.class)
@ConditionalOnProperty(prefix="spring.xsuaa.flows",
name="auto",
havingValue="true",
matchIfMissing=true)
public class XsuaaTokenFlowAutoConfiguration
extends Object
Auto-configuration for default beans used by the XSUAA client library.
Activates when there is a class of type XsuaaTokenFlows on the classpath.
can be disabled with @EnableAutoConfiguration(exclude={XsuaaTokenFlowAutoConfiguration.class}) or with property spring.xsuaa.flows.auto = false
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionxsuaaTokenFlows(org.springframework.web.client.RestOperations xsuaaRestOperations, XsuaaServiceConfiguration xsuaaServiceConfiguration) Creates a newXsuaaTokenFlowsbean that applications can auto-wire into their controllers to perform a programmatic token flow exchange.
-
Constructor Details
-
XsuaaTokenFlowAutoConfiguration
public XsuaaTokenFlowAutoConfiguration()
-
-
Method Details
-
xsuaaTokenFlows
@Bean @ConditionalOnBean({XsuaaServiceConfiguration.class,org.springframework.web.client.RestOperations.class}) @ConditionalOnMissingBean public XsuaaTokenFlows xsuaaTokenFlows(org.springframework.web.client.RestOperations xsuaaRestOperations, XsuaaServiceConfiguration xsuaaServiceConfiguration) Creates a newXsuaaTokenFlowsbean that applications can auto-wire into their controllers to perform a programmatic token flow exchange.- Parameters:
xsuaaRestOperations- - theRestOperationsto use for the token flow exchange.xsuaaServiceConfiguration- - theXsuaaServiceConfigurationto configure the Xsuaa Base Url.- Returns:
- the
XsuaaTokenFlowsAPI.
-