Token

Token #

Package : spaceone.api.identity.v2



Token #

Token Methods:

MethodRequestResponse
issueIssueTokenRequestTokenInfo
grantGrantTokenRequestGrantTokenInfo

issue #

+noauth

POST /identity/v2/token/issue

IssueTokenRequest

  • credentials (Struct) Required

  • domain_id (string) Required

  • auth_type (AuthType)

    LOCAL, EXTERNAL

  • timeout (int32)

  • verify_code (string)

    if MFA is enabled, verify_code is required

{
 "credentials": {
     "user_id": "wonny@cloudforet.io",
     "password": "Password0*"
 },
 "auth_type": "LOCAL",
 "domain_id": "domain-123123a"
}

grant #

+noauth

POST /identity/v2/token/grant

GrantTokenRequest

  • grant_type (GrantType) Required

  • token (string) Required

  • scope (Scope) Required

  • timeout (int32)

  • permissions (string) Repeated

  • domain_id (string)

  • workspace_id (string)

{
 "grant_type": "REFRESH_TOKEN",
 "token": "your_refresh_token_from_issue",
 "scope": "DOMAIN",
 "domain_id": "domain-123123a"
}


Message #

GrantTokenInfo #

  • access_token (string) Required

  • role_type (RoleType) Required

  • domain_id (string) Required

  • workspace_id (string) Required

  • role_id (string) Required


GrantTokenRequest #

  • grant_type (GrantType) Required

  • token (string) Required

  • scope (Scope) Required

  • timeout (int32)

  • permissions (string) Repeated

  • domain_id (string)

  • workspace_id (string)


IssueTokenRequest #

  • credentials (Struct) Required

  • domain_id (string) Required

  • auth_type (AuthType)

    LOCAL, EXTERNAL

  • timeout (int32)

  • verify_code (string)

    if MFA is enabled, verify_code is required


TokenInfo #

  • access_token (string) Required

  • refresh_token (string) Required


Calendar December 4, 2024
Edit Edit this page