PredixUAAAccessToken

public struct PredixUAAAccessToken

A Model that represents a Predix UAA session. Please visit the UAA documentation site for more information

  • The UAA token used for access

    Declaration

    Swift

    public let token: String?
  • The UAA token type

    Declaration

    Swift

    public let tokenType: String?
  • The UAA refresh token

    Declaration

    Swift

    public let refreshToken: String?
  • The UAA user information for the Authenticated user

    Declaration

    Swift

    public let user: User?
  • The raw UAA token response payload

    Declaration

    Swift

    public let rawPayload: [String : Any]?
  • Constructs a PredixUAAAccessToken from a UAA token response. For detials on how to obtain a UAA token please refer to the UAAAuthorizationHandler

    The authenticationPayload is expect to follow the token response payload from the UAA token specification

    example structure:

    [ access_token : 070b35231966488ab07f11822c6ef162, token_type : bearer, refresh_token : cd98b3dea6044470b0a6dfccc0e370ee-r, expires_in : 43199, scope : openid oauth.approvals, jti : 070b35231966488ab07f11822c6ef162 ]

    Declaration

    Swift

    public init?(authenticationPayload: [String: Any]?)

    Return Value

    Returns nil if the given payload does not contain a UAA token or a UAA token type