PROTOCOL
OAuthDataMapper
public protocol OAuthDataMapper
Interface for a OAuthDataMapper that provides mappings from IdsvrHaapiSdk models to IdsvrHaapiUIKit models.
- Experiment: This is an experimental API. It may be changed or removed in the future.
 
Methods
mapTokenResponseToOAuthModel(tokenResponse:)
func mapTokenResponseToOAuthModel(tokenResponse: TokenResponse) throws -> OAuthModel
Maps a TokenResponse to an OAuthModel.
- Parameters:
- tokenResponse: the Haapi SDK 
TokenResponseinstance to map. 
 - tokenResponse: the Haapi SDK 
 - Returns: A mapped 
OAuthModelthat can be used in the UIKit framework. - Throws: 
HaapiUIKitError.unsupportedMapIf an issue occurs while mapping the objects. 
Parameters
| Name | Description | 
|---|---|
| tokenResponse | the Haapi SDK TokenResponse instance to map. |