V2Alpha1.CreatePlayerIdentityTokenResponse Class

Namespace: Improbable.SpatialOS.PlayerAuth

Inheritance

pb::IMessage<CreatePlayerIdentityTokenResponse>


Const Fields

PlayerIdentityTokenFieldNumber
const int PlayerIdentityTokenFieldNumber = 1

Field number for the "player_identity_token" field.


Static Properties

Parser
pb::MessageParser<CreatePlayerIdentityTokenResponse> Parser { get; }


Descriptor
pbr::MessageDescriptor Descriptor { get; }


Properties

PlayerIdentityToken
string PlayerIdentityToken { get; set; }

The player_identity_token is a long-lived token (up to 24h) which guarantees a user's identity in the context of a project.

Notes:
  • It is a signed JWT with the following payload: sub: provider-scoped unique user ID. Corresponds to player_identifier supplied in CreatePlayerIdentityTokenRequest. prvdr: describes system used to authenticate the user. Corresponds to provider supplied in CreatePlayerIdentityTokenRequest. prj: project that the PIT is scoped to. md: metadata. Corresponds to md supplied in CreatePlayerIdentityTokenRequest. iat: issued at time. This is the time since epoch in seconds in UTC. exp: expiry time. This is the time since epoch in seconds in UTC. dn: display name. This is an optional user-provided string, corresponding to dn supplied in CreatePlayerIdentityRequest.


Constructors

CreatePlayerIdentityTokenResponse
CreatePlayerIdentityTokenResponse()


CreatePlayerIdentityTokenResponse
CreatePlayerIdentityTokenResponse(CreatePlayerIdentityTokenResponse other)

Parameters


Methods

Clone
CreatePlayerIdentityTokenResponse Clone()


Equals
bool Equals(CreatePlayerIdentityTokenResponse other)

Parameters

WriteTo
void WriteTo(pb::CodedOutputStream output)

Parameters
  • pb::CodedOutputStream output :

CalculateSize
int CalculateSize()


MergeFrom
void MergeFrom(CreatePlayerIdentityTokenResponse other)

Parameters

MergeFrom
void MergeFrom(pb::CodedInputStream input)

Parameters
  • pb::CodedInputStream input :


Overrides

Equals
override bool Equals(object other)

Parameters
  • object other :

GetHashCode
override int GetHashCode()


ToString
override string ToString()

Updated about a year ago


V2Alpha1.CreatePlayerIdentityTokenResponse Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.