Represents a token request.
More...
#import <OIDTokenRequest.h>
◆ initWithConfiguration:grantType:authorizationCode:redirectURL:clientID:clientSecret:scope:refreshToken:codeVerifier:additionalParameters:()
| - (instancetype) initWithConfiguration: |
|
(OIDServiceConfiguration *) |
configuration |
| grantType: |
|
(NSString *) |
grantType |
| authorizationCode: |
|
(nullable NSString *) |
code |
| redirectURL: |
|
(nullable NSURL *) |
redirectURL |
| clientID: |
|
(NSString *) |
clientID |
| clientSecret: |
|
(nullable NSString *) |
clientSecret |
| scope: |
|
(nullable NSString *) |
scope |
| refreshToken: |
|
(nullable NSString *) |
refreshToken |
| codeVerifier: |
|
(nullable NSString *) |
codeVerifier |
| additionalParameters: |
|
(nullable NSDictionary< NSString *, NSString * > *) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Designated initializer.
- Parameters
-
| configuration | The service's configuration. |
| grantType | the type of token being sent to the token endpoint, i.e. "authorization_code" for the authorization code exchange, or "refresh_token" for an access token refresh request. |
- See also
- OIDGrantTypes.h
- Parameters
-
| code | The authorization code received from the authorization server. |
| redirectURL | The client's redirect URI. |
| clientID | The client identifier. |
| clientSecret | The client secret. |
| scope | The value of the scope parameter is expressed as a list of space-delimited, case-sensitive strings. |
| refreshToken | The refresh token. |
| codeVerifier | The PKCE code verifier. |
| additionalParameters | The client's additional token request parameters. |
◆ initWithConfiguration:grantType:authorizationCode:redirectURL:clientID:clientSecret:scopes:refreshToken:codeVerifier:additionalParameters:()
| - (instancetype) initWithConfiguration: |
|
(OIDServiceConfiguration *) |
configuration |
| grantType: |
|
(NSString *) |
grantType |
| authorizationCode: |
|
(nullable NSString *) |
code |
| redirectURL: |
|
(nullable NSURL *) |
redirectURL |
| clientID: |
|
(NSString *) |
clientID |
| clientSecret: |
|
(nullable NSString *) |
clientSecret |
| scopes: |
|
(nullable NSArray< NSString * > *) |
scopes |
| refreshToken: |
|
(nullable NSString *) |
refreshToken |
| codeVerifier: |
|
(nullable NSString *) |
codeVerifier |
| additionalParameters: |
|
(nullable NSDictionary< NSString *, NSString * > *) |
additionalParameters |
|
|
| |
- Parameters
-
| configuration | The service's configuration. |
| grantType | the type of token being sent to the token endpoint, i.e. "authorization_code" for the authorization code exchange, or "refresh_token" for an access token refresh request. |
- See also
- OIDGrantTypes.h
- Parameters
-
| code | The authorization code received from the authorization server. |
| redirectURL | The client's redirect URI. |
| clientID | The client identifier. |
| clientSecret | The client secret. |
| scopes | An array of scopes to combine into a single scope string per the OAuth2 spec. |
| refreshToken | The refresh token. |
| codeVerifier | The PKCE code verifier. |
| additionalParameters | The client's additional token request parameters. |
◆ URLRequest()
| - (NSURLRequest *) URLRequest |
|
|
|
Constructs an NSURLRequest representing the token request.
- Returns
- An
NSURLRequest representing the token request.
◆ authorizationCode
| - (NSString*) authorizationCode |
|
readnonatomicassign |
◆ clientID
◆ clientSecret
| - (NSString*) clientSecret |
|
readnonatomicassign |
◆ codeVerifier
| - (NSString*) codeVerifier |
|
readnonatomicassign |
◆ configuration
The service's configuration.
◆ grantType
◆ redirectURL
◆ refreshToken
| - (NSString*) refreshToken |
|
readnonatomicassign |
◆ scope
The documentation for this class was generated from the following file: