@@ -105,6 +105,55 @@ NS_ASSUME_NONNULL_BEGIN
105
105
*/
106
106
- (instancetype )init NS_UNAVAILABLE;
107
107
108
+ /* ! @param configuration The service's configuration.
109
+ @param grantType the type of token being sent to the token endpoint, i.e. "authorization_code"
110
+ for the authorization code exchange, or "refresh_token" for an access token refresh request.
111
+ @see OIDGrantTypes.h
112
+ @param code The authorization code received from the authorization server.
113
+ @param redirectURL The client's redirect URI.
114
+ @param clientID The client identifier.
115
+ @param clientSecret The client secret.
116
+ @param scopes An array of scopes to combine into a single scope string per the OAuth2 spec.
117
+ @param refreshToken The refresh token.
118
+ @param codeVerifier The PKCE code verifier.
119
+ @param additionalParameters The client's additional token request parameters.
120
+ */
121
+ - (instancetype )initWithConfiguration : (OIDServiceConfiguration *)configuration
122
+ grantType : (NSString *)grantType
123
+ authorizationCode : (nullable NSString *)code
124
+ redirectURL : (nullable NSURL *)redirectURL
125
+ clientID : (NSString *)clientID
126
+ clientSecret : (nullable NSString *)clientSecret
127
+ scopes : (nullable NSArray <NSString *> *)scopes
128
+ refreshToken : (nullable NSString *)refreshToken
129
+ codeVerifier : (nullable NSString *)codeVerifier
130
+ additionalParameters : (nullable NSDictionary <NSString *, NSString *> *)additionalParameters ;
131
+
132
+ /* ! @param configuration The service's configuration.
133
+ @param grantType the type of token being sent to the token endpoint, i.e. "authorization_code"
134
+ for the authorization code exchange, or "refresh_token" for an access token refresh request.
135
+ @see OIDGrantTypes.h
136
+ @param code The authorization code received from the authorization server.
137
+ @param redirectURL The client's redirect URI.
138
+ @param clientID The client identifier.
139
+ @param clientSecret The client secret.
140
+ @param scope The value of the scope parameter is expressed as a list of space-delimited,
141
+ case-sensitive strings.
142
+ @param refreshToken The refresh token.
143
+ @param codeVerifier The PKCE code verifier.
144
+ @param additionalParameters The client's additional token request parameters.
145
+ */
146
+ - (instancetype )initWithConfiguration : (OIDServiceConfiguration *)configuration
147
+ grantType : (NSString *)grantType
148
+ authorizationCode : (nullable NSString *)code
149
+ redirectURL : (nullable NSURL *)redirectURL
150
+ clientID : (NSString *)clientID
151
+ clientSecret : (nullable NSString *)clientSecret
152
+ scope : (nullable NSString *)scope
153
+ refreshToken : (nullable NSString *)refreshToken
154
+ codeVerifier : (nullable NSString *)codeVerifier
155
+ additionalParameters : (nullable NSDictionary <NSString *, NSString *> *)additionalParameters ;
156
+
108
157
/* ! @param configuration The service's configuration.
109
158
@param grantType the type of token being sent to the token endpoint, i.e. "authorization_code"
110
159
for the authorization code exchange, or "refresh_token" for an access token refresh request.
0 commit comments