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 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 new XsuaaTokenFlows bean that applications can auto-wire into their controllers to perform a programmatic token flow exchange.
      Parameters:
      xsuaaRestOperations - - the RestOperations to use for the token flow exchange.
      xsuaaServiceConfiguration - - the XsuaaServiceConfiguration to configure the Xsuaa Base Url.
      Returns:
      the XsuaaTokenFlows API.