STRUCT
AuthorizationProblem
Contents
- Properties
metadatamessageslinksrawJsonStringtitletypeerrorerrorDescription
 - Methods
init(from:)encode(to:)==(_:_:)
 
public struct AuthorizationProblem: ProblemRepresentation
An OAuth 2.0 error authorization response.
Properties
metadata
public let metadata: Metadata?
messages
public let messages: [UserMessage]
links
public let links: [Link]
rawJsonString
public let rawJsonString: String?
title
public let title: Message?
type
public let type: ProblemType
error
public let error: String
The error code.
errorDescription
public let errorDescription: String?
A human-readable description of the error.
Methods
init(from:)
public init(from decoder: Decoder) throws
Parameters
| Name | Description | 
|---|---|
| decoder | The decoder to read data from. | 
encode(to:)
public func encode(to encoder: Encoder) throws
Parameters
| Name | Description | 
|---|---|
| encoder | The encoder to write data to. | 
==(::)
public static func == (lhs: AuthorizationProblem, rhs: AuthorizationProblem) -> Bool
Parameters
| Name | Description | 
|---|---|
| lhs | A value to compare. | 
| rhs | Another value to compare. |