您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
44 行
908 B
44 行
908 B
using System;
|
|
using Newtonsoft.Json;
|
|
using UnityEngine.Scripting;
|
|
|
|
namespace Unity.Services.Authentication.Models
|
|
{
|
|
class AccessToken : BaseJwt
|
|
{
|
|
[Preserve]
|
|
public AccessToken() {}
|
|
|
|
[JsonProperty("aud")]
|
|
public string[] Audience;
|
|
|
|
[JsonProperty("client_id")]
|
|
public string ClientId;
|
|
|
|
[JsonProperty("ext")]
|
|
public AccessTokenExtraClaims Extra;
|
|
|
|
[JsonProperty("iss")]
|
|
public string Issuer;
|
|
|
|
[JsonProperty("jti")]
|
|
public string JwtId;
|
|
|
|
[JsonProperty("project_id")]
|
|
public string ProjectId;
|
|
|
|
[JsonProperty("scp")]
|
|
public string[] Scope;
|
|
|
|
[JsonProperty("sub")]
|
|
public string Subject;
|
|
}
|
|
|
|
class AccessTokenExtraClaims
|
|
{
|
|
[Preserve]
|
|
public AccessTokenExtraClaims() {}
|
|
|
|
// Unused at this time but left in for completeness
|
|
}
|
|
}
|