CreateTokenRequest
public struct CreateTokenRequest : AWSShape
Undocumented
-
Declaration
Swift
public static var _members: [AWSShapeMember]
-
The unique identifier string for each client. This value should come from the persisted result of the RegisterClient API.
Declaration
Swift
public let clientId: String
-
A secret string generated for the client. This value should come from the persisted result of the RegisterClient API.
Declaration
Swift
public let clientSecret: String
-
The authorization code received from the authorization service. This parameter is required to perform an authorization grant request to get access to a token.
Declaration
Swift
public let code: String?
-
Used only when calling this API for the device code grant type. This short-term code is used to identify this authentication attempt. This should come from an in-memory reference to the result of the StartDeviceAuthorization API.
Declaration
Swift
public let deviceCode: String
-
Supports grant types for authorization code, refresh token, and device code request.
Declaration
Swift
public let grantType: String
-
The location of the application that will receive the authorization code. Users authorize the service to send the request to this location.
Declaration
Swift
public let redirectUri: String?
-
The token used to obtain an access token in the event that the access token is invalid or expired. This token is not issued by the service.
Declaration
Swift
public let refreshToken: String?
-
The list of scopes that is defined by the client. Upon authorization, this list is used to restrict permissions when granting an access token.
Declaration
Swift
public let scope: [String]?
-
Undocumented
Declaration
Swift
public init(clientId: String, clientSecret: String, code: String? = nil, deviceCode: String, grantType: String, redirectUri: String? = nil, refreshToken: String? = nil, scope: [String]? = nil)