NetIQ Mobile SDK for iOS  2.0
Access Manager iOS Framework for OAuth & OIDC
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) {
99  OIDErrorCodeInvalidDiscoveryDocument = -2,
100 
103  OIDErrorCodeUserCanceledAuthorizationFlow = -3,
104 
107  OIDErrorCodeProgramCanceledAuthorizationFlow = -4,
108 
111  OIDErrorCodeNetworkError = -5,
112 
115  OIDErrorCodeServerError = -6,
116 
119  OIDErrorCodeJSONDeserializationError = -7,
120 
123  OIDErrorCodeTokenResponseConstructionError = -8,
124 
128  OIDErrorCodeSafariOpenError = -9,
129 
133  OIDErrorCodeBrowserOpenError = -10,
134 
137  OIDErrorCodeTokenRefreshError = -11,
138 
141  OIDErrorCodeRegistrationResponseConstructionError = -12,
142 
145  OIDErrorCodeJSONSerializationError = -13,
146 
147 };
148 
157 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuth) {
158 
163  OIDErrorCodeOAuthInvalidRequest = -2,
164 
169  OIDErrorCodeOAuthUnauthorizedClient = -3,
170 
174  OIDErrorCodeOAuthAccessDenied = -4,
175 
179  OIDErrorCodeOAuthUnsupportedResponseType = -5,
180 
185  OIDErrorCodeOAuthInvalidScope = -6,
186 
190  OIDErrorCodeOAuthServerError = -7,
191 
195  OIDErrorCodeOAuthTemporarilyUnavailable = -8,
196 
200  OIDErrorCodeOAuthInvalidClient = -9,
201 
205  OIDErrorCodeOAuthInvalidGrant = -10,
206 
210  OIDErrorCodeOAuthUnsupportedGrantType = -11,
211 
215  OIDErrorCodeOAuthInvalidRedirectURI = -12,
216 
220  OIDErrorCodeOAuthInvalidClientMetadata = -13,
221 
226  OIDErrorCodeOAuthClientError = -0xEFFF,
227 
234  OIDErrorCodeOAuthOther = -0xF000,
235 };
236 
240 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthAuthorization) {
244  OIDErrorCodeOAuthAuthorizationInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
245 
249  OIDErrorCodeOAuthAuthorizationUnauthorizedClient = OIDErrorCodeOAuthUnauthorizedClient,
250 
254  OIDErrorCodeOAuthAuthorizationAccessDenied =
255  OIDErrorCodeOAuthAccessDenied,
256 
260  OIDErrorCodeOAuthAuthorizationUnsupportedResponseType =
261  OIDErrorCodeOAuthUnsupportedResponseType,
262 
267  OIDErrorCodeOAuthAuthorizationAuthorizationInvalidScope = OIDErrorCodeOAuthInvalidScope,
268 
273  OIDErrorCodeOAuthAuthorizationServerError = OIDErrorCodeOAuthServerError,
274 
278  OIDErrorCodeOAuthAuthorizationTemporarilyUnavailable = OIDErrorCodeOAuthTemporarilyUnavailable,
279 
284  OIDErrorCodeOAuthAuthorizationClientError = OIDErrorCodeOAuthClientError,
285 
292  OIDErrorCodeOAuthAuthorizationOther = OIDErrorCodeOAuthOther,
293 };
294 
295 
299 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthToken) {
303  OIDErrorCodeOAuthTokenInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
304 
308  OIDErrorCodeOAuthTokenInvalidClient = OIDErrorCodeOAuthInvalidClient,
309 
313  OIDErrorCodeOAuthTokenInvalidGrant = OIDErrorCodeOAuthInvalidGrant,
314 
318  OIDErrorCodeOAuthTokenUnauthorizedClient = OIDErrorCodeOAuthUnauthorizedClient,
319 
323  OIDErrorCodeOAuthTokenUnsupportedGrantType = OIDErrorCodeOAuthUnsupportedGrantType,
324 
328  OIDErrorCodeOAuthTokenInvalidScope = OIDErrorCodeOAuthInvalidScope,
329 
332  OIDErrorCodeOAuthTokenClientError = OIDErrorCodeOAuthClientError,
333 
340  OIDErrorCodeOAuthTokenOther = OIDErrorCodeOAuthOther,
341 };
342 
346 typedef NS_ENUM(NSInteger, OIDErrorCodeOAuthRegistration) {
350  OIDErrorCodeOAuthRegistrationInvalidRequest = OIDErrorCodeOAuthInvalidRequest,
351 
355  OIDErrorCodeOAuthRegistrationInvalidRedirectURI = OIDErrorCodeOAuthInvalidRedirectURI,
356 
360  OIDErrorCodeOAuthRegistrationInvalidClientMetadata = OIDErrorCodeOAuthInvalidClientMetadata,
361 
364  OIDErrorCodeOAuthRegistrationClientError = OIDErrorCodeOAuthClientError,
365 
372  OIDErrorCodeOAuthRegistrationOther = OIDErrorCodeOAuthOther,
373 };
374 
375 
379 extern NSString *const OIDOAuthExceptionInvalidAuthorizationFlow;
380 
383 extern NSString *const OIDOAuthExceptionUnsupportedResponseType;
384 
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 &#39;error_description&#39; 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 &#39;error_uri&#39; 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 &#39;error&#39; 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...