Class DeviceFlowConfiguration

java.lang.Object
com.irurueta.authserver.serviceclient.device.DeviceFlowConfiguration

@Configuration(proxyBeanMethods=false) @Profile("device-flow") @EnableConfigurationProperties(DeviceFlowProperties.class) public class DeviceFlowConfiguration extends Object
Beans of the device flow CLI, present only under the "device-flow" profile.
  • Field Details

  • Constructor Details

    • DeviceFlowConfiguration

      public DeviceFlowConfiguration()
  • Method Details

    • deviceFlowSleeper

      @Bean public Sleeper deviceFlowSleeper()
      Sleeper that really blocks the thread.
      Returns:
      the sleeper.
    • deviceFlowClock

      @Bean public Clock deviceFlowClock()
      Clock used to detect that the device code expired.
      Returns:
      the UTC system clock.
    • deviceFlowOutput

      @Bean public DeviceFlowOutput deviceFlowOutput()
      Output of the CLI: the standard output.
      Returns:
      the output.
    • deviceFlowRestClient

      @Bean public org.springframework.web.client.RestClient deviceFlowRestClient(DeviceFlowProperties properties)
      HTTP client aimed at the authorization server.
      Parameters:
      properties - the CLI settings.
      Returns:
      the client.