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.RegisterClient

Description

Registers a client with AWS SSO. This allows clients to initiate device authorization. The output should be persisted for reuse through many authentication requests.

Synopsis

Creating a Request

data RegisterClient Source #

See: newRegisterClient smart constructor.

Constructors

RegisterClient' 

Fields

  • scopes :: Maybe [Text]

    The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.

  • clientName :: Text

    The friendly name of the client.

  • clientType :: Text

    The type of client. The service supports only public as a client type. Anything other than public will be rejected by the service.

Instances

Instances details
Eq RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Read RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Show RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Generic RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Associated Types

type Rep RegisterClient :: Type -> Type #

NFData RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Methods

rnf :: RegisterClient -> () #

Hashable RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

ToJSON RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

AWSRequest RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Associated Types

type AWSResponse RegisterClient #

ToHeaders RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

ToPath RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

ToQuery RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

type Rep RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

type Rep RegisterClient = D1 ('MetaData "RegisterClient" "Amazonka.SSOOIDC.RegisterClient" "libZSservicesZSamazonka-sso-oidcZSamazonka-sso-oidc" 'False) (C1 ('MetaCons "RegisterClient'" 'PrefixI 'True) (S1 ('MetaSel ('Just "scopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "clientName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "clientType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse RegisterClient Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

newRegisterClient Source #

Create a value of RegisterClient 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:scopes:RegisterClient', registerClient_scopes - The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.

$sel:clientName:RegisterClient', registerClient_clientName - The friendly name of the client.

$sel:clientType:RegisterClient', registerClient_clientType - The type of client. The service supports only public as a client type. Anything other than public will be rejected by the service.

Request Lenses

registerClient_scopes :: Lens' RegisterClient (Maybe [Text]) Source #

The list of scopes that are defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.

registerClient_clientName :: Lens' RegisterClient Text Source #

The friendly name of the client.

registerClient_clientType :: Lens' RegisterClient Text Source #

The type of client. The service supports only public as a client type. Anything other than public will be rejected by the service.

Destructuring the Response

data RegisterClientResponse Source #

See: newRegisterClientResponse smart constructor.

Constructors

RegisterClientResponse' 

Fields

Instances

Instances details
Eq RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Read RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Show RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Generic RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Associated Types

type Rep RegisterClientResponse :: Type -> Type #

NFData RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

Methods

rnf :: RegisterClientResponse -> () #

type Rep RegisterClientResponse Source # 
Instance details

Defined in Amazonka.SSOOIDC.RegisterClient

type Rep RegisterClientResponse = D1 ('MetaData "RegisterClientResponse" "Amazonka.SSOOIDC.RegisterClient" "libZSservicesZSamazonka-sso-oidcZSamazonka-sso-oidc" 'False) (C1 ('MetaCons "RegisterClientResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "clientSecret") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientIdIssuedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)))) :*: ((S1 ('MetaSel ('Just "clientSecretExpiresAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "tokenEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "authorizationEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newRegisterClientResponse Source #

Create a value of RegisterClientResponse 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:RegisterClientResponse', registerClientResponse_clientId - The unique identifier string for each client. This client uses this identifier to get authenticated by the service in subsequent calls.

$sel:clientSecret:RegisterClientResponse', registerClientResponse_clientSecret - A secret string generated for the client. The client will use this string to get authenticated by the service in subsequent calls.

$sel:clientIdIssuedAt:RegisterClientResponse', registerClientResponse_clientIdIssuedAt - Indicates the time at which the clientId and clientSecret were issued.

$sel:clientSecretExpiresAt:RegisterClientResponse', registerClientResponse_clientSecretExpiresAt - Indicates the time at which the clientId and clientSecret will become invalid.

$sel:tokenEndpoint:RegisterClientResponse', registerClientResponse_tokenEndpoint - The endpoint where the client can get an access token.

$sel:authorizationEndpoint:RegisterClientResponse', registerClientResponse_authorizationEndpoint - The endpoint where the client can request authorization.

$sel:httpStatus:RegisterClientResponse', registerClientResponse_httpStatus - The response's http status code.

Response Lenses

registerClientResponse_clientId :: Lens' RegisterClientResponse (Maybe Text) Source #

The unique identifier string for each client. This client uses this identifier to get authenticated by the service in subsequent calls.

registerClientResponse_clientSecret :: Lens' RegisterClientResponse (Maybe Text) Source #

A secret string generated for the client. The client will use this string to get authenticated by the service in subsequent calls.

registerClientResponse_clientIdIssuedAt :: Lens' RegisterClientResponse (Maybe Integer) Source #

Indicates the time at which the clientId and clientSecret were issued.

registerClientResponse_clientSecretExpiresAt :: Lens' RegisterClientResponse (Maybe Integer) Source #

Indicates the time at which the clientId and clientSecret will become invalid.

registerClientResponse_tokenEndpoint :: Lens' RegisterClientResponse (Maybe Text) Source #

The endpoint where the client can get an access token.

registerClientResponse_authorizationEndpoint :: Lens' RegisterClientResponse (Maybe Text) Source #

The endpoint where the client can request authorization.