Go to the documentation of this file.
19 #import <Foundation/Foundation.h>
28 NS_ASSUME_NONNULL_BEGIN
66 @property(nonatomic, readonly) NSString *
clientID;
79 @property(nonatomic, readonly, nullable) NSString *
scope;
102 - (instancetype)init NS_UNAVAILABLE;
118 grantType:(NSString *)grantType
119 authorizationCode:(nullable NSString *)code
120 redirectURL:(nullable NSURL *)redirectURL
121 clientID:(NSString *)clientID
122 clientSecret:(nullable NSString *)clientSecret
123 scopes:(nullable NSArray<NSString *> *)scopes
124 refreshToken:(nullable NSString *)refreshToken
125 codeVerifier:(nullable NSString *)codeVerifier
126 additionalParameters:(nullable NSDictionary<NSString *, NSString *> *)additionalParameters;
144 grantType:(NSString *)grantType
145 authorizationCode:(nullable NSString *)code
146 redirectURL:(nullable NSURL *)redirectURL
147 clientID:(NSString *)clientID
148 clientSecret:(nullable NSString *)clientSecret
149 scope:(nullable NSString *)scope
150 refreshToken:(nullable NSString *)refreshToken
151 codeVerifier:(nullable NSString *)codeVerifier
152 additionalParameters:(nullable NSDictionary<NSString *, NSString *> *)additionalParameters
153 NS_DESIGNATED_INITIALIZER;
162 NS_ASSUME_NONNULL_END
Represents the information needed to construct a OIDAuthorizationService.
Definition: OIDServiceConfiguration.h:35
NSString * authorizationCode
The authorization code received from the authorization server.
Definition: OIDTokenRequest.h:54
Represents the response to an authorization request.
Definition: OIDAuthorizationResponse.h:31
NSString * scope
The value of the scope parameter is expressed as a list of space-delimited, case-sensitive strings.
Definition: OIDTokenRequest.h:79
NSString * clientSecret
The client secret.
Definition: OIDTokenRequest.h:72
NSURL * redirectURL
The client's redirect URI.
Definition: OIDTokenRequest.h:60
NSString * clientID
The client identifier.
Definition: OIDTokenRequest.h:66
NSURLRequest * URLRequest()
Constructs an NSURLRequest representing the token request.
OIDServiceConfiguration * configuration
The service's configuration.
Definition: OIDTokenRequest.h:40
Represents a token request.
Definition: OIDTokenRequest.h:34
NSString * grantType
The type of token being sent to the token endpoint, i.e. "authorization_code" for the authorization c...
Definition: OIDTokenRequest.h:48
NSString * refreshToken
The refresh token, which can be used to obtain new access tokens using the same authorization grant.
Definition: OIDTokenRequest.h:86
NSDictionary< NSString *, NSString * > * additionalParameters
The client's additional token request parameters.
Definition: OIDTokenRequest.h:96
NSString * codeVerifier
The PKCE code verifier used to redeem the authorization code.
Definition: OIDTokenRequest.h:92