libZSservicesZSamazonka-sso-oidcZSamazonka-sso-oidc
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSOOIDC.StartDeviceAuthorization

Description

Initiates device authorization by requesting a pair of verification codes from the authorization service.

Synopsis

Creating a Request

data StartDeviceAuthorization Source #

See: newStartDeviceAuthorization smart constructor.

Constructors

StartDeviceAuthorization' 

Fields

  • clientId :: Text

    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.

  • clientSecret :: Text

    A secret string that is generated for the client. This value should come from the persisted result of the RegisterClient API operation.

  • startUrl :: Text

    The URL for the AWS SSO user portal. For more information, see Using the User Portal in the AWS Single Sign-On User Guide.

Instances

Instances details
Eq StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Read StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Show StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Generic StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Associated Types

type Rep StartDeviceAuthorization :: Type -> Type #

NFData StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Hashable StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

ToJSON StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

AWSRequest StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

ToHeaders StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

ToPath StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

ToQuery StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

type Rep StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

type Rep StartDeviceAuthorization = D1 ('MetaData "StartDeviceAuthorization" "Amazonka.SSOOIDC.StartDeviceAuthorization" "libZSservicesZSamazonka-sso-oidcZSamazonka-sso-oidc" 'False) (C1 ('MetaCons "StartDeviceAuthorization'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "clientSecret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "startUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse StartDeviceAuthorization Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

newStartDeviceAuthorization Source #

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.

Constructors

StartDeviceAuthorizationResponse' 

Fields

  • userCode :: Maybe Text

    A one-time user verification code. This is needed to authorize an in-use device.

  • interval :: Maybe Int

    Indicates the number of seconds the client must wait between attempts when polling for a session.

  • expiresIn :: Maybe Int

    Indicates the number of seconds in which the verification code will become invalid.

  • verificationUri :: Maybe Text

    The URI of the verification page that takes the userCode to authorize the device.

  • deviceCode :: Maybe Text

    The short-lived code that is used by the device when polling for a session token.

  • verificationUriComplete :: Maybe Text

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Read StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Show StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Generic StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

Associated Types

type Rep StartDeviceAuthorizationResponse :: Type -> Type #

NFData StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

type Rep StartDeviceAuthorizationResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.StartDeviceAuthorization

type Rep StartDeviceAuthorizationResponse = D1 ('MetaData "StartDeviceAuthorizationResponse" "Amazonka.SSOOIDC.StartDeviceAuthorization" "libZSservicesZSamazonka-sso-oidcZSamazonka-sso-oidc" 'False) (C1 ('MetaCons "StartDeviceAuthorizationResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "interval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "expiresIn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: ((S1 ('MetaSel ('Just "verificationUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "deviceCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "verificationUriComplete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

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.