Represents an authorization request.
More...
#import <OIDAuthorizationRequest.h>
Inherits NSObject, <NSCopying>, and <NSSecureCoding>.
◆ authorizationRequestURL()
| - (NSURL *) authorizationRequestURL |
|
|
|
Constructs the request URI by adding the request parameters to the query component of the authorization endpoint URI using the "application/x-www-form-urlencoded" format.
- Returns
- A URL representing the authorization request.
- See also
- https://tools.ietf.org/html/rfc6749#section-4.1.1
◆ codeChallengeS256ForVerifier:()
| + (nullable NSString *) codeChallengeS256ForVerifier: |
|
(nullable NSString *) |
codeVerifier |
|
◆ generateCodeVerifier()
| + (nullable NSString *) generateCodeVerifier |
|
|
|
◆ generateState()
| + (nullable NSString *) generateState |
|
|
|
◆ initWithConfiguration:clientId:clientSecret:scope:redirectURL:responseType:state:codeVerifier:codeChallenge:codeChallengeMethod:additionalParameters:()
| - (instancetype) initWithConfiguration: |
|
(OIDServiceConfiguration *) |
configuration |
| clientId: |
|
(NSString *) |
clientID |
| clientSecret: |
|
(nullable NSString *) |
clientSecret |
| scope: |
|
(nullable NSString *) |
scope |
| redirectURL: |
|
(nullable NSURL *) |
redirectURL |
| responseType: |
|
(NSString *) |
responseType |
| state: |
|
(nullable NSString *) |
state |
| codeVerifier: |
|
(nullable NSString *) |
codeVerifier |
| codeChallenge: |
|
(nullable NSString *) |
codeChallenge |
| codeChallengeMethod: |
|
(nullable NSString *) |
codeChallengeMethod |
| additionalParameters: |
|
(nullable NSDictionary< NSString *, NSString * > *) |
NS_DESIGNATED_INITIALIZER |
|
|
| |
Designated initializer.
- Parameters
-
| configuration | The service's configuration. |
| clientID | The client identifier. |
| scope | A scope string per the OAuth2 spec (a space-delimited set of scopes). |
| redirectURL | The client's redirect URI. |
| responseType | The expected response type. |
| state | An opaque value used by the client to maintain state between the request and callback. |
| codeVerifier | The PKCE code verifier. See generateCodeVerifier. |
| codeChallenge | The PKCE code challenge, calculated from the code verifier such as with codeChallengeS256ForVerifier:. |
| codeChallengeMethod | The PKCE code challenge method. OIDOAuthorizationRequestCodeChallengeMethodS256 when codeChallengeS256ForVerifier: is used to create the code challenge. |
| additionalParameters | The client's additional authorization parameters. |
◆ initWithConfiguration:clientId:clientSecret:scopes:redirectURL:responseType:additionalParameters:()
| - (instancetype) initWithConfiguration: |
|
(OIDServiceConfiguration *) |
configuration |
| clientId: |
|
(NSString *) |
clientID |
| clientSecret: |
|
(nullable NSString *) |
clientSecret |
| scopes: |
|
(nullable NSArray< NSString * > *) |
scopes |
| redirectURL: |
|
(NSURL *) |
redirectURL |
| responseType: |
|
(NSString *) |
responseType |
| additionalParameters: |
|
(nullable NSDictionary< NSString *, NSString * > *) |
additionalParameters |
|
|
| |
Creates an authorization request with opinionated defaults (a secure state, and PKCE with S256 as the code_challenge_method).
- Parameters
-
| configuration | The service's configuration. |
| clientID | The client identifier. |
| clientSecret | The client secret. |
| scopes | An array of scopes to combine into a single scope string per the OAuth2 spec. |
| redirectURL | The client's redirect URI. |
| responseType | The expected response type. |
| additionalParameters | The client's additional authorization parameters. |
◆ initWithConfiguration:clientId:scopes:redirectURL:responseType:additionalParameters:()
| - (instancetype) initWithConfiguration: |
|
(OIDServiceConfiguration *) |
configuration |
| clientId: |
|
(NSString *) |
clientID |
| scopes: |
|
(nullable NSArray< NSString * > *) |
scopes |
| redirectURL: |
|
(NSURL *) |
redirectURL |
| responseType: |
|
(NSString *) |
responseType |
| additionalParameters: |
|
(nullable NSDictionary< NSString *, NSString * > *) |
additionalParameters |
|
|
| |
Creates an authorization request with opinionated defaults (a secure state, and PKCE with S256 as the code_challenge_method).
- Parameters
-
| configuration | The service's configuration. |
| clientID | The client identifier. |
| scopes | An array of scopes to combine into a single scope string per the OAuth2 spec. |
| redirectURL | The client's redirect URI. |
| responseType | The expected response type. |
| additionalParameters | The client's additional authorization parameters. |
◆ additionalParameters
| - (NSDictionary<NSString *, NSString *>*) additionalParameters |
|
readnonatomicassign |
◆ clientID
◆ clientSecret
| - (NSString*) clientSecret |
|
readnonatomicassign |
◆ codeChallenge
| - (NSString*) codeChallenge |
|
readnonatomicassign |
◆ codeChallengeMethod
| - (NSString*) codeChallengeMethod |
|
readnonatomicassign |
◆ codeVerifier
| - (NSString*) codeVerifier |
|
readnonatomicassign |
◆ configuration
The service's configuration.
◆ redirectURL
◆ responseType
| - (NSString*) responseType |
|
readnonatomicassign |
◆ scope
◆ state
The documentation for this class was generated from the following file: