19 #import <Foundation/Foundation.h> 28 NS_ASSUME_NONNULL_BEGIN
61 @property(nonatomic, readonly) NSString *
clientID;
78 @property(nonatomic, readonly, nullable) NSString *
scope;
95 @property(nonatomic, readonly, nullable) NSString *
state;
128 - (instancetype)init NS_UNAVAILABLE;
143 clientId:(NSString *)clientID
144 scopes:(nullable NSArray<NSString *> *)scopes
145 redirectURL:(NSURL *)redirectURL
146 responseType:(NSString *)responseType
147 additionalParameters:(nullable NSDictionary<NSString *, NSString *> *)additionalParameters;
163 clientId:(NSString *)clientID
164 clientSecret:(nullable NSString *)clientSecret
165 scopes:(nullable NSArray<NSString *> *)scopes
166 redirectURL:(NSURL *)redirectURL
167 responseType:(NSString *)responseType
168 additionalParameters:(nullable NSDictionary<NSString *, NSString *> *)additionalParameters;
189 clientId:(NSString *)clientID
190 clientSecret:(nullable NSString *)clientSecret
191 scope:(nullable NSString *)scope
192 redirectURL:(nullable NSURL *)redirectURL
193 responseType:(NSString *)responseType
194 state:(nullable NSString *)state
195 codeVerifier:(nullable NSString *)codeVerifier
196 codeChallenge:(nullable NSString *)codeChallenge
197 codeChallengeMethod:(nullable NSString *)codeChallengeMethod
198 additionalParameters:(nullable NSDictionary<NSString *, NSString *> *)additionalParameters
199 NS_DESIGNATED_INITIALIZER;
229 + (nullable NSString *)codeChallengeS256ForVerifier:(nullable NSString *)codeVerifier;
233 NS_ASSUME_NONNULL_END
Represents the information needed to construct a OIDAuthorizationService.
Definition: OIDServiceConfiguration.h:35
nullable NSString * generateCodeVerifier()
Constructs a PKCE-compliant code verifier.
OIDServiceConfiguration * configuration
The service's configuration.
Definition: OIDAuthorizationRequest.h:46
NS_ASSUME_NONNULL_BEGIN NSString *const OIDOAuthorizationRequestCodeChallengeMethodS256
The code_challenge_method value for the S256 code challenge.
NSURL * redirectURL
The client's redirect URI.
Definition: OIDAuthorizationRequest.h:84
NSString * codeVerifier
The PKCE code verifier.
Definition: OIDAuthorizationRequest.h:105
Represents an authorization request.
Definition: OIDAuthorizationRequest.h:40
NSString * codeChallengeMethod
The method used to compute the codeChallenge.
Definition: OIDAuthorizationRequest.h:117
NSString * clientSecret
The client secret.
Definition: OIDAuthorizationRequest.h:71
NSURL * authorizationRequestURL()
Constructs the request URI by adding the request parameters to the query component of the authorizati...
nullable NSString * generateState()
Generates an OAuth state param using a random source.
NSString * responseType
The expected response type.
Definition: OIDAuthorizationRequest.h:55
NSDictionary< NSString *, NSString * > * additionalParameters
The client's additional authorization parameters.
Definition: OIDAuthorizationRequest.h:122
NSString * state
An opaque value used by the client to maintain state between the request and callback.
Definition: OIDAuthorizationRequest.h:95
NSString * clientID
The client identifier.
Definition: OIDAuthorizationRequest.h:61
NSString * scope
The value of the scope parameter is expressed as a list of space-delimited, case-sensitive strings...
Definition: OIDAuthorizationRequest.h:78
NSString * codeChallenge
The PKCE code challenge, derived from codeVerifier.
Definition: OIDAuthorizationRequest.h:111