OAuth2Error
public enum OAuth2Error : Error
extension OAuth2Error: SAPError
Enumeration to describe the errors of the OAuth2 authentication
-
There was a server error during authentication / refresh. The error contains the parsed server error.
Declaration
Swift
case server(error: OAuth2ServerError)
-
There was an error in the WebView component. The error contains the propagated error.
Declaration
Swift
case webView(error: Error)
-
A method got called with invalid argument(s).
Declaration
Swift
case invalidArgument(detail: String)
-
The
SAPURLSession
component signalled an error during a request.Declaration
Swift
case http(error: Error, statusCode: Int?, response: String?)
-
The HTTP response was empty.
Declaration
Swift
case missingHTTPResponse
-
There was an error during token parsing.
Declaration
Swift
case parse(error: String, httpUrlResponse: HTTPURLResponse, data: Data)
-
There is already an ongoing authentication process.
Declaration
Swift
case authenticationInProgress
-
Could not find authorization code in the redirect url.
Declaration
Swift
case authorizationCode
-
The newly acquired or refreshed token got rejected.
Declaration
Swift
case tokenRejected
-
The authenticate method was calling in background mode, which is not supported.
Declaration
Swift
case backgroundAuthentication
-
The authentication got cancelled.
Declaration
Swift
case cancelled
-
The webView/login page got refreshed
Declaration
Swift
case webViewReloaded
-
A textual representation of this instance.
Declaration
Swift
public var description: String { get }
-
A localized message describing what error occurred.
Declaration
Swift
public var errorDescription: String? { get }
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
public var debugDescription: String { get }
-
A localized message describing the reason for the failure.
Declaration
Swift
public var failureReason: String? { get }