Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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_userCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_interval :: Lens' StartDeviceAuthorizationResponse (Maybe Int)
- startDeviceAuthorizationResponse_expiresIn :: Lens' StartDeviceAuthorizationResponse (Maybe Int)
- startDeviceAuthorizationResponse_verificationUri :: Lens' StartDeviceAuthorizationResponse (Maybe Text)
- startDeviceAuthorizationResponse_deviceCode :: 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.
StartDeviceAuthorization' | |
|
Instances
newStartDeviceAuthorization Source #
:: 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 AWS
SSO. 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 SSO user portal. For more information, see
Using the User Portal
in the AWS Single Sign-On User Guide.
Request Lenses
startDeviceAuthorization_clientId :: Lens' StartDeviceAuthorization Text Source #
The unique identifier string for the client that is registered with AWS SSO. 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 SSO user portal. For more information, see Using the User Portal in the AWS Single Sign-On User Guide.
Destructuring the Response
data StartDeviceAuthorizationResponse Source #
See: newStartDeviceAuthorizationResponse
smart constructor.
StartDeviceAuthorizationResponse' | |
|
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:userCode:StartDeviceAuthorizationResponse'
, startDeviceAuthorizationResponse_userCode
- A one-time user verification code. This is needed to authorize an in-use
device.
$sel:interval:StartDeviceAuthorizationResponse'
, startDeviceAuthorizationResponse_interval
- Indicates the number of seconds the client must wait between attempts
when polling for a session.
$sel:expiresIn:StartDeviceAuthorizationResponse'
, startDeviceAuthorizationResponse_expiresIn
- Indicates the number of seconds in which the verification code will
become invalid.
$sel:verificationUri:StartDeviceAuthorizationResponse'
, startDeviceAuthorizationResponse_verificationUri
- The URI of the verification page that takes the userCode
to authorize
the device.
$sel:deviceCode:StartDeviceAuthorizationResponse'
, startDeviceAuthorizationResponse_deviceCode
- The short-lived code that is used by the device when polling for a
session token.
$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_userCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
A one-time user verification code. This is needed to authorize an in-use device.
startDeviceAuthorizationResponse_interval :: Lens' StartDeviceAuthorizationResponse (Maybe Int) Source #
Indicates the number of seconds the client must wait between attempts when polling for a session.
startDeviceAuthorizationResponse_expiresIn :: Lens' StartDeviceAuthorizationResponse (Maybe Int) Source #
Indicates the number of seconds in which the verification code will become invalid.
startDeviceAuthorizationResponse_verificationUri :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
The URI of the verification page that takes the userCode
to authorize
the device.
startDeviceAuthorizationResponse_deviceCode :: Lens' StartDeviceAuthorizationResponse (Maybe Text) Source #
The short-lived code that is used by the device when polling for a session token.
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.