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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClock used to detect that the device code expired.Output of the CLI: the standard output.org.springframework.web.client.RestClientdeviceFlowRestClient(DeviceFlowProperties properties) HTTP client aimed at the authorization server.Sleeper that really blocks the thread.
-
Field Details
-
PROFILE
Name of the Spring profile that turns the CLI on.- See Also:
-
-
Constructor Details
-
DeviceFlowConfiguration
public DeviceFlowConfiguration()
-
-
Method Details
-
deviceFlowSleeper
Sleeper that really blocks the thread.- Returns:
- the sleeper.
-
deviceFlowClock
Clock used to detect that the device code expired.- Returns:
- the UTC system clock.
-
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.
-