Sites

Menu

CreatePlayerIdentityTokenResponse Class

Namespace: Improbable.SpatialOS.PlayerAuth.V2Alpha1

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 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 supplied in . prvdr: describes system used to authenticate the user. Corresponds to supplied in . prj: project that the PIT is scoped to. md: metadata. Corresponds to supplied in . 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 supplied in .


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()

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums