19 #import <Foundation/Foundation.h> 21 NS_ASSUME_NONNULL_BEGIN
96 typedef NS_ENUM(NSInteger, OIDErrorCode) {
99 OIDErrorCodeInvalidDiscoveryDocument = -2,
103 OIDErrorCodeUserCanceledAuthorizationFlow = -3,
107 OIDErrorCodeProgramCanceledAuthorizationFlow = -4,
111 OIDErrorCodeNetworkError = -5,
115 OIDErrorCodeServerError = -6,
119 OIDErrorCodeJSONDeserializationError = -7,
123 OIDErrorCodeTokenResponseConstructionError = -8,
128 OIDErrorCodeSafariOpenError = -9,
133 OIDErrorCodeBrowserOpenError = -10,
137 OIDErrorCodeTokenRefreshError = -11,
141 OIDErrorCodeRegistrationResponseConstructionError = -12,
145 OIDErrorCodeJSONSerializationError = -13,
157 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuth) {
163 OIDErrorCodeOAuthInvalidRequest = -2,
169 OIDErrorCodeOAuthUnauthorizedClient = -3,
174 OIDErrorCodeOAuthAccessDenied = -4,
179 OIDErrorCodeOAuthUnsupportedResponseType = -5,
185 OIDErrorCodeOAuthInvalidScope = -6,
190 OIDErrorCodeOAuthServerError = -7,
195 OIDErrorCodeOAuthTemporarilyUnavailable = -8,
200 OIDErrorCodeOAuthInvalidClient = -9,
205 OIDErrorCodeOAuthInvalidGrant = -10,
210 OIDErrorCodeOAuthUnsupportedGrantType = -11,
215 OIDErrorCodeOAuthInvalidRedirectURI = -12,
220 OIDErrorCodeOAuthInvalidClientMetadata = -13,
226 OIDErrorCodeOAuthClientError = -0xEFFF,
234 OIDErrorCodeOAuthOther = -0xF000,
240 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthAuthorization) {
244 OIDErrorCodeOAuthAuthorizationInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
249 OIDErrorCodeOAuthAuthorizationUnauthorizedClient = OIDErrorCodeOAuthUnauthorizedClient,
254 OIDErrorCodeOAuthAuthorizationAccessDenied =
255 OIDErrorCodeOAuthAccessDenied,
260 OIDErrorCodeOAuthAuthorizationUnsupportedResponseType =
261 OIDErrorCodeOAuthUnsupportedResponseType,
267 OIDErrorCodeOAuthAuthorizationAuthorizationInvalidScope = OIDErrorCodeOAuthInvalidScope,
273 OIDErrorCodeOAuthAuthorizationServerError = OIDErrorCodeOAuthServerError,
278 OIDErrorCodeOAuthAuthorizationTemporarilyUnavailable = OIDErrorCodeOAuthTemporarilyUnavailable,
284 OIDErrorCodeOAuthAuthorizationClientError = OIDErrorCodeOAuthClientError,
292 OIDErrorCodeOAuthAuthorizationOther = OIDErrorCodeOAuthOther,
299 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthToken) {
303 OIDErrorCodeOAuthTokenInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
308 OIDErrorCodeOAuthTokenInvalidClient = OIDErrorCodeOAuthInvalidClient,
313 OIDErrorCodeOAuthTokenInvalidGrant = OIDErrorCodeOAuthInvalidGrant,
318 OIDErrorCodeOAuthTokenUnauthorizedClient = OIDErrorCodeOAuthUnauthorizedClient,
323 OIDErrorCodeOAuthTokenUnsupportedGrantType = OIDErrorCodeOAuthUnsupportedGrantType,
328 OIDErrorCodeOAuthTokenInvalidScope = OIDErrorCodeOAuthInvalidScope,
332 OIDErrorCodeOAuthTokenClientError = OIDErrorCodeOAuthClientError,
340 OIDErrorCodeOAuthTokenOther = OIDErrorCodeOAuthOther,
346 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthRegistration) {
350 OIDErrorCodeOAuthRegistrationInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
355 OIDErrorCodeOAuthRegistrationInvalidRedirectURI = OIDErrorCodeOAuthInvalidRedirectURI,
360 OIDErrorCodeOAuthRegistrationInvalidClientMetadata = OIDErrorCodeOAuthInvalidClientMetadata,
364 OIDErrorCodeOAuthRegistrationClientError = OIDErrorCodeOAuthClientError,
372 OIDErrorCodeOAuthRegistrationOther = OIDErrorCodeOAuthOther,
385 NS_ASSUME_NONNULL_END
NSString *const OIDOAuthExceptionInvalidAuthorizationFlow
The exception text for the exception which occurs when a OIDAuthorizationFlowSession receives a messa...
NSString *const OIDOAuthErrorFieldErrorDescription
The key of the 'error_description' response field in a RFC6749 Section 5.2 response.
NSString *const OIDOAuthErrorResponseErrorKey
An error key for the original OAuth error response (if any).
typedef NS_ENUM(NSInteger, OIDErrorCode)
The various error codes returned from the AppAuth library.
Definition: OIDError.h:96
NSString *const OIDOAuthExceptionUnsupportedResponseType
Exception for unsupported response types.
NSString *const OIDOAuthAuthorizationErrorDomain
The error domain for OAuth specific errors on the authorization endpoint. This error domain is used ...
NSString *const OIDOAuthErrorFieldErrorURI
The key of the 'error_uri' response field in a RFC6749 Section 5.2 response.
NSString *const OIDOAuthRegistrationErrorDomain
The error domain for dynamic client registration errors. This error domain is used when the server r...
NSString *const OIDOAuthErrorFieldError
The key of the 'error' response field in a RFC6749 Section 5.2 response.
NS_ASSUME_NONNULL_BEGIN NSString *const OIDGeneralErrorDomain
The error domain for all NSErrors returned from the AppAuth library.
NSString *const OIDHTTPErrorDomain
An error domain representing received HTTP errors.
NSString *const OIDOAuthTokenErrorDomain
The error domain for OAuth specific errors on the token endpoint. This error domain is used when the...
NSString *const OIDResourceServerAuthorizationErrorDomain
The error domain for authorization errors encountered out of band on the resource server...