Package com.irurueta.authserver.serviceclient.device
package com.irurueta.authserver.serviceclient.device
Command-line client of the OAuth 2.0 device authorization grant (RFC 8628): requests a device code, shows the user
code and verification URI, and polls the token endpoint until the user approves the request.
Everything here is active only under the device-flow Spring profile, so the regular service-client
application is not affected.
-
ClassDescriptionResponse of the device authorization endpoint (RFC 8628 section 3.2).Calls the standard device flow endpoints of the authorization server.Error response of the token endpoint (RFC 6749 section 5.2).Command-line client of the OAuth 2.0 device authorization grant (RFC 8628): requests a device code, prints the user code and the verification URI, then polls the token endpoint honouring
interval,slow_down,authorization_pendingandexpired_token.Beans of the device flow CLI, present only under the "device-flow" profile.The device flow could not finish: the request failed, the user denied it, the device code expired or the program was interrupted.Writes the lines a person (or a test) reads.Settings of the device flow CLI, bound fromdevice-flow.*(command-line arguments or environment variables such asDEVICE_FLOW_ISSUER).What one poll of the token endpoint answered (RFC 8628 section 3.5).Any other error (access_denied,expired_token, ...): the flow is over.The user approved the request.authorization_pending: the user has not decided yet; poll again after the same interval.slow_down: polling too fast; the interval grows byDeviceFlowCli.SLOW_DOWN_INCREMENT_SECONDS.Waits between two polls of the token endpoint.Successful response of the token endpoint (RFC 6749 section 5.1).