java实现iam登录认证,获取IAM用户Token(使用密码)

响应示例

状态码为 201 时:

创建成功。

获取IAM用户名为“IAMUser”,IAM用户密码为“IAMPassword”,所属帐号名为“IAMDomain”,作用范围为项目“cn-north-1”,且返回的响应体中将不显示catalog信息的Token。响应Header参数:

X-Subject-Token:MIIatAYJKoZIhvcNAQcCoIIapTCCGqECAQExDTALB...

响应Body参数:

{

"token": {

"catalog": [],

"expires_at": "2020-01-04T09:05:22.701000Z",

"issued_at": "2020-01-03T09:05:22.701000Z",

"methods": [

"password"

],

"project": {

"domain": {

"id": "d78cbac186b744899480f25bd022f...",

"name": "IAMDomain"

},

"id": "aa2d97d7e62c4b7da3ffdfc11551f...",

"name": "cn-north-1"

},

"roles": [

{

你可能感兴趣的:(java实现iam登录认证)