AppAuth
OIDError.h
Go to the documentation of this file.
1 
19 #import <Foundation/Foundation.h>
20 
21 NS_ASSUME_NONNULL_BEGIN
22 
25 extern NSString *const OIDGeneralErrorDomain;
26 
36 extern NSString *const OIDOAuthAuthorizationErrorDomain;
37 
49 extern NSString *const OIDOAuthTokenErrorDomain;
50 
62 extern NSString *const OIDOAuthRegistrationErrorDomain;
63 
66 extern NSString *const OIDResourceServerAuthorizationErrorDomain;
67 
70 extern NSString *const OIDHTTPErrorDomain;
71 
74 extern NSString *const OIDOAuthErrorResponseErrorKey;
75 
80 extern NSString *const OIDOAuthErrorFieldError;
81 
86 extern NSString *const OIDOAuthErrorFieldErrorDescription;
87 
92 extern NSString *const OIDOAuthErrorFieldErrorURI;
93 
96 typedef NS_ENUM(NSInteger, OIDErrorCode) {
100 
104 
108 
112 
116 
120 
124 
129 
134 
138 
142 
146 
150 
154 };
155 
164 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuth) {
165 
171 
177 
182 
187 
193 
198 
203 
208 
213 
218 
223 
228 
234 
242 };
243 
247 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthAuthorization) {
252 
257 
263 
269 
275 
281 
286 
292 
300 };
301 
302 
306 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthToken) {
311 
316 
321 
326 
331 
336 
340 
348 };
349 
353 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthRegistration) {
358 
363 
368 
372 
380 };
381 
382 
386 extern NSString *const OIDOAuthExceptionInvalidAuthorizationFlow;
387 
392 
393 NS_ASSUME_NONNULL_END
OIDErrorCodeOAuthAuthorizationAuthorizationInvalidScope
Indicates a network error or server error occurred.
Definition: OIDError.h:274
OIDOAuthAuthorizationErrorDomain
NSString *const OIDOAuthAuthorizationErrorDomain
The error domain for OAuth specific errors on the authorization endpoint. @discussion This error doma...
OIDErrorCodeOAuthAuthorizationUnsupportedResponseType
Definition: OIDError.h:267
OIDErrorCodeJSONDeserializationError
Indicates a problem occurred deserializing the response/JSON.
Definition: OIDError.h:119
OIDOAuthErrorFieldErrorURI
NSString *const OIDOAuthErrorFieldErrorURI
The key of the 'error_uri' response field in a RFC6749 Section 5.2 response.
OIDErrorCodeOAuthTokenUnauthorizedClient
Definition: OIDError.h:325
OIDErrorCodeTokenResponseConstructionError
Indicates a problem occurred constructing the token response from the JSON.
Definition: OIDError.h:123
OIDErrorCodeOAuthRegistration
OIDErrorCodeOAuthRegistration
The error codes for the OIDOAuthRegistrationErrorDomain error domain.
Definition: OIDError.h:353
OIDErrorCode
OIDErrorCode
The various error codes returned from the AppAuth library.
Definition: OIDError.h:96
OIDErrorCodeTokenRefreshError
Indicates a problem when trying to refresh the tokens.
Definition: OIDError.h:137
OIDErrorCodeOAuthInvalidGrant
Definition: OIDError.h:212
OIDErrorCodeOAuthInvalidClientMetadata
Definition: OIDError.h:227
OIDOAuthRegistrationErrorDomain
NSString *const OIDOAuthRegistrationErrorDomain
The error domain for dynamic client registration errors. @discussion This error domain is used when t...
OIDErrorCodeOAuthTokenInvalidScope
Definition: OIDError.h:335
OIDErrorCodeInvalidDiscoveryDocument
Indicates a problem parsing an OpenID Connect Service Discovery document.
Definition: OIDError.h:99
OIDErrorCodeProgramCanceledAuthorizationFlow
Indicates an OAuth authorization flow was programmatically cancelled.
Definition: OIDError.h:107
OIDErrorCodeUserCanceledAuthorizationFlow
Indicates the user manually canceled the OAuth authorization code flow.
Definition: OIDError.h:103
OIDErrorCodeOAuthAuthorizationOther
An authorization OAuth error not known to this library @discussion this indicates an OAuth error as p...
Definition: OIDError.h:299
OIDResourceServerAuthorizationErrorDomain
NSString *const OIDResourceServerAuthorizationErrorDomain
The error domain for authorization errors encountered out of band on the resource server.
OIDErrorCodeOAuthRegistrationInvalidClientMetadata
Definition: OIDError.h:367
OIDErrorCodeJSONSerializationError
Indicates a problem occurred deserializing the response/JSON.
Definition: OIDError.h:145
OIDErrorCodeOAuthAuthorizationInvalidRequest
Definition: OIDError.h:251
OIDErrorCodeRegistrationResponseConstructionError
Indicates a problem occurred constructing the registration response from the JSON.
Definition: OIDError.h:141
OIDErrorCodeOAuthTokenUnsupportedGrantType
Definition: OIDError.h:330
OIDErrorCodeOAuth
OIDErrorCodeOAuth
Enum of all possible OAuth error codes as defined by RFC6749 @discussion Used by OIDErrorCodeOAuthAut...
Definition: OIDError.h:164
OIDErrorCodeOAuthRegistrationOther
A registration endpoint OAuth error not known to this library @discussion this indicates an OAuth err...
Definition: OIDError.h:379
OIDErrorCodeOAuthRegistrationClientError
An unrecoverable token error occurring on the client rather than the server.
Definition: OIDError.h:371
OIDErrorCodeOAuthToken
OIDErrorCodeOAuthToken
The error codes for the OIDOAuthTokenErrorDomain error domain.
Definition: OIDError.h:306
OIDOAuthErrorFieldError
NSString *const OIDOAuthErrorFieldError
The key of the 'error' response field in a RFC6749 Section 5.2 response.
OIDErrorCodeOAuthTokenOther
A token endpoint OAuth error not known to this library @discussion this indicates an OAuth error as p...
Definition: OIDError.h:347
OIDErrorCodeNetworkError
Indicates a network error or server error occurred.
Definition: OIDError.h:111
OIDGeneralErrorDomain
NSString *const OIDGeneralErrorDomain
The error domain for all NSErrors returned from the AppAuth library.
OIDErrorCodeIDTokenParsingError
The ID Token did not parse.
Definition: OIDError.h:149
OIDOAuthExceptionInvalidTokenRequestNullRedirectURL
NSString *const OIDOAuthExceptionInvalidTokenRequestNullRedirectURL
The text for the exception which occurs when a Token Request is constructed with a null redirectURL f...
OIDErrorCodeOAuthServerError
Definition: OIDError.h:197
OIDHTTPErrorDomain
NSString *const OIDHTTPErrorDomain
An error domain representing received HTTP errors.
OIDErrorCodeOAuthTokenInvalidGrant
Definition: OIDError.h:320
OIDErrorCodeOAuthTokenClientError
An unrecoverable token error occurring on the client rather than the server.
Definition: OIDError.h:339
OIDErrorCodeOAuthUnsupportedGrantType
Definition: OIDError.h:217
OIDErrorCodeOAuthAuthorizationTemporarilyUnavailable
Definition: OIDError.h:285
OIDErrorCodeOAuthInvalidRedirectURI
Definition: OIDError.h:222
OIDErrorCodeSafariOpenError
UIApplication.openURL: returned NO when attempting to open the authorization request in mobile Safari...
Definition: OIDError.h:128
OIDErrorCodeOAuthInvalidClient
Definition: OIDError.h:207
OIDErrorCodeOAuthRegistrationInvalidRequest
Definition: OIDError.h:357
OIDErrorCodeOAuthAuthorizationAccessDenied
Definition: OIDError.h:261
OIDErrorCodeServerError
Indicates a server error occurred.
Definition: OIDError.h:115
OIDErrorCodeOAuthUnauthorizedClient
Definition: OIDError.h:176
OIDErrorCodeOAuthTemporarilyUnavailable
Definition: OIDError.h:202
OIDErrorCodeOAuthOther
An OAuth error not known to this library @discussion Indicates an OAuth error as per RFC6749,...
Definition: OIDError.h:241
OIDErrorCodeOAuthTokenInvalidRequest
Definition: OIDError.h:310
OIDOAuthTokenErrorDomain
NSString *const OIDOAuthTokenErrorDomain
The error domain for OAuth specific errors on the token endpoint. @discussion This error domain is us...
OIDErrorCodeOAuthAuthorizationServerError
Indicates a server error occurred.
Definition: OIDError.h:280
OIDErrorCodeBrowserOpenError
NSWorkspace.openURL returned NO when attempting to open the authorization request in the default brow...
Definition: OIDError.h:133
OIDErrorCodeOAuthAuthorizationClientError
An authorization error occurring on the client rather than the server. For example,...
Definition: OIDError.h:291
OIDErrorCodeOAuthUnsupportedResponseType
Definition: OIDError.h:186
OIDErrorCodeOAuthAuthorizationUnauthorizedClient
Definition: OIDError.h:256
OIDErrorCodeOAuthAccessDenied
Definition: OIDError.h:181
OIDOAuthErrorFieldErrorDescription
NSString *const OIDOAuthErrorFieldErrorDescription
The key of the 'error_description' response field in a RFC6749 Section 5.2 response.
OIDErrorCodeOAuthInvalidRequest
Definition: OIDError.h:170
OIDErrorCodeOAuthAuthorization
OIDErrorCodeOAuthAuthorization
The error codes for the OIDOAuthAuthorizationErrorDomain error domain.
Definition: OIDError.h:247
OIDErrorCodeOAuthClientError
An authorization error occurring on the client rather than the server. For example,...
Definition: OIDError.h:233
OIDErrorCodeOAuthRegistrationInvalidRedirectURI
Definition: OIDError.h:362
OIDErrorCodeOAuthInvalidScope
Definition: OIDError.h:192
OIDOAuthExceptionInvalidAuthorizationFlow
NSString *const OIDOAuthExceptionInvalidAuthorizationFlow
The exception text for the exception which occurs when a OIDExternalUserAgentSession receives a messa...
OIDErrorCodeOAuthTokenInvalidClient
Definition: OIDError.h:315
OIDOAuthErrorResponseErrorKey
NSString *const OIDOAuthErrorResponseErrorKey
An error key for the original OAuth error response (if any).
OIDErrorCodeIDTokenFailedValidationError
The ID Token did not pass validation (e.g. issuer, audience checks).
Definition: OIDError.h:153