Represents an authorization request.
More...
#import <OIDAuthorizationRequest.h>
◆ authorizationRequestURL()
- (NSURL *) authorizationRequestURL |
|
|
|
◆ codeChallengeS256ForVerifier:()
+ (nullable NSString *) codeChallengeS256ForVerifier: |
|
(nullable NSString *) |
codeVerifier |
|
◆ generateCodeVerifier()
+ (nullable NSString *) generateCodeVerifier |
|
|
|
◆ generateState()
+ (nullable NSString *) generateState |
|
|
|
◆ initWithConfiguration:clientId:clientSecret:scope:redirectURL:responseType:state:nonce: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 |
nonce: |
|
(nullable NSString *) |
nonce |
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. |
nonce | String value used to associate a Client session with an ID Token. Can be set to nil if not using OpenID Connect, although pure OAuth servers should ignore params they don't understand anyway. |
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
, nonce
, 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.
◆ nonce
◆ redirectURL
◆ responseType
- (NSString*) responseType |
|
readnonatomicassign |
◆ scope
◆ state
The documentation for this class was generated from the following file: