| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SSOOIDC.StartDeviceAuthorization
Description
Initiates device authorization by requesting a pair of verification codes from the authorization service.
Synopsis
- data StartDeviceAuthorization = StartDeviceAuthorization' {}
- newStartDeviceAuthorization :: Text -> Text -> Text -> StartDeviceAuthorization
- startDeviceAuthorization_clientId :: Lens' StartDeviceAuthorization Text
- startDeviceAuthorization_clientSecret :: Lens' StartDeviceAuthorization Text
- startDeviceAuthorization_startUrl :: Lens' StartDeviceAuthorization Text
- data StartDeviceAuthorizationResponse = StartDeviceAuthorizationResponse' {}
- newStartDeviceAuthorizationResponse :: Int -> StartDeviceAuthorizationResponse
- startDeviceAuthorizationResponse_deviceCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_expiresIn :: Lens' StartDeviceAuthorizationResponse (Maybe Int)
- startDeviceAuthorizationResponse_interval :: Lens' StartDeviceAuthorizationResponse (Maybe Int)
- startDeviceAuthorizationResponse_userCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_verificationUri :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_verificationUriComplete :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_httpStatus :: Lens' StartDeviceAuthorizationResponse Int
Creating a Request
data StartDeviceAuthorization Source #
See: newStartDeviceAuthorization smart constructor.
Constructors
| StartDeviceAuthorization' | |
Fields
| |
Instances
newStartDeviceAuthorization Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> StartDeviceAuthorization |
Create a value of StartDeviceAuthorization with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientId:StartDeviceAuthorization', startDeviceAuthorization_clientId - The unique identifier string for the client that is registered with IAM
Identity Center. This value should come from the persisted result of the
RegisterClient API operation.
$sel:clientSecret:StartDeviceAuthorization', startDeviceAuthorization_clientSecret - A secret string that is generated for the client. This value should come
from the persisted result of the RegisterClient API operation.
$sel:startUrl:StartDeviceAuthorization', startDeviceAuthorization_startUrl - The URL for the AWS access portal. For more information, see
Using the AWS access portal
in the IAM Identity Center User Guide.
Request Lenses
startDeviceAuthorization_clientId :: Lens' StartDeviceAuthorization Text Source #
The unique identifier string for the client that is registered with IAM Identity Center. This value should come from the persisted result of the RegisterClient API operation.
startDeviceAuthorization_clientSecret :: Lens' StartDeviceAuthorization Text Source #
A secret string that is generated for the client. This value should come from the persisted result of the RegisterClient API operation.
startDeviceAuthorization_startUrl :: Lens' StartDeviceAuthorization Text Source #
The URL for the AWS access portal. For more information, see Using the AWS access portal in the IAM Identity Center User Guide.
Destructuring the Response
data StartDeviceAuthorizationResponse Source #
See: newStartDeviceAuthorizationResponse smart constructor.
Constructors
| StartDeviceAuthorizationResponse' | |
Fields
| |
Instances
newStartDeviceAuthorizationResponse Source #
Create a value of StartDeviceAuthorizationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deviceCode:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_deviceCode - The short-lived code that is used by the device when polling for a
session token.
$sel:expiresIn:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_expiresIn - Indicates the number of seconds in which the verification code will
become invalid.
$sel:interval:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_interval - Indicates the number of seconds the client must wait between attempts
when polling for a session.
$sel:userCode:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_userCode - A one-time user verification code. This is needed to authorize an in-use
device.
$sel:verificationUri:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_verificationUri - The URI of the verification page that takes the userCode to authorize
the device.
$sel:verificationUriComplete:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_verificationUriComplete - An alternate URL that the client can use to automatically launch a
browser. This process skips the manual step in which the user visits the
verification page and enters their code.
$sel:httpStatus:StartDeviceAuthorizationResponse', startDeviceAuthorizationResponse_httpStatus - The response's http status code.
Response Lenses
startDeviceAuthorizationResponse_deviceCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
The short-lived code that is used by the device when polling for a session token.
startDeviceAuthorizationResponse_expiresIn :: Lens' StartDeviceAuthorizationResponse (Maybe Int) Source #
Indicates the number of seconds in which the verification code will become invalid.
startDeviceAuthorizationResponse_interval :: Lens' StartDeviceAuthorizationResponse (Maybe Int) Source #
Indicates the number of seconds the client must wait between attempts when polling for a session.
startDeviceAuthorizationResponse_userCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
A one-time user verification code. This is needed to authorize an in-use device.
startDeviceAuthorizationResponse_verificationUri :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
The URI of the verification page that takes the userCode to authorize
the device.
startDeviceAuthorizationResponse_verificationUriComplete :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
An alternate URL that the client can use to automatically launch a browser. This process skips the manual step in which the user visits the verification page and enters their code.
startDeviceAuthorizationResponse_httpStatus :: Lens' StartDeviceAuthorizationResponse Int Source #
The response's http status code.