文档

Token

更新时间:
名称类型描述示例值
object

认证成功后返回的对象,包含 access_token 和 refresh_token 还有基础用户信息

access_tokenstring

访问凭证

eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjOWI3YTVhYTA0ZDE0YWUzODY3ZmRjODg2ZmEwMWRhNCIsImN1c3RvbUpzb24iOiJ7XCJjbGllbnRJZFwiOlwiMjVkelgzdmJZcWt0Vnh5WFwiLFwiZG9tYWluSWRcIjpcImJqMjlcIixcInNjb3BlXCI6W1wiRFJJVkUuQUxMXCIsXCJTSEFSRS5BTExcIixcIkZJTEUuQUxMXCIsXCJVU0VSLkFMTFwiLFwiVklFVy5BTExcIixcIlNUT1JBR0UuQUxMXCIsXCJTVE9SQUdFRklMRS5MSVNUXCIsXCJCQVRDSFwiLFwiT0FVVEguQUxMXCIsXCJJTUFHRS5BTExcIixcIklOVklURS5BTExcIixcIkFDQ09VTlQuQUxMXCJdLFwicm9sZVwiOlwidXNlclwiLFwicmVmXCI6XCJodHRwczovL3d3dy5hbGl5dW5kcml2ZS5jb20vXCIsXCJkZXZpY2VfaWRcIjpcImIyODIwNWU1YzU5NzRjY2JiODI3MDNiNjhkYjhjNDUxXCJ9IiwiZXhwIjoxNjQ4NjE0NDkzLCJpYXQiOjE2NDg2MDcyMzN9.d3HVLvv_LFw2QhPrhvjH_kICWQJX9sKKt7NjQEqI_xE2JO_b7D8rPsFTZz93PLvZ7MhCmudTjGImUpd-ehFnI4Go-1S7BGaKaHFILvP-sWy18Wpikowjxx9mSbzBM_cO6D1LI-kyYhXKWHgVdADfVIPniTDA7-ffhUpi7cAebEs
refresh_tokenstring

刷新凭证

060e78d36afb4879b51e4264e9541c16
expires_inlong

凭证有效期

3600
token_typestring

凭证类型

枚举值:
  • BearerBearer
Bearer
user_idstring

用户 ID

DING-xxxxx
user_namestring

用户名

pdsuser
avatarstring

用户头像

aliyunpds.com/a.jpg
nick_namestring

用户昵称

pdsuser
default_drive_idstring

用户默认空间 ID

1
rolestring

用户角色

admin
statusstring

用户状态

enabled
expire_timestring

凭证过期时间

2019-09-01T06:57:48.813Z
is_first_loginboolean

是否首次登录

false
device_idstring

通过 oauth device flow 绑定的设备 id

8574ecc3d4904dc095cc49202e74db94
device_namestring

通过 oauth device flow 绑定的设备名

4683C25F
domain_idstring

域 ID

bj1
default_sbox_drive_idstring

用户默认保险箱 ID

1
user_dataobject

用户自定义数据

string
pin_setupboolean

用户是否设置过保险箱密码

false
need_rp_verifyboolean

用户是否需要进行实人认证

false
statestring

临时权限,用于登录成功后设置密码

klafhjas-asdasd-asd-as-d-asd-asd-asdasd
LinkInfo