PFAuthenticationGetEntityRequest

PFAuthenticationGetEntityRequest 数据模型。 必须使用 X-SecretKey、X-Authentication 或 X-EntityToken 标头调用此 API。 可以包含可选的 EntityKey 来尝试将生成的 EntityToken 设置为特定实体,但该实体必须是调用方的关系,例如角色的 master_player_account。 如果发送 X-EntityToken,帐户将标记为新登录,并将颁发新令牌。 如果使用 X-Authentication 或 X-EntityToken,标头必须仍然有效,并且不能过期或已吊销。

语法

typedef struct PFAuthenticationGetEntityRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
} PFAuthenticationGetEntityRequest;  

成员

customTags PFStringDictionaryEntry const*
可能是 nullptr

(可选)与请求关联的可选自定义标记(例如内部版本号、外部跟踪标识符等)。

customTagsCount uint32_t

customTags 计数

entity PFEntityKey const*
可能是 nullptr

(可选)要对其执行此操作的可选实体。 默认为当前登录的实体。

要求

标头:PFAuthenticationTypes.h

另请参阅

PFAuthenticationTypes 成员