Token
Package : spaceone.api.identity.v2
Token
Token Methods:
Method | Request | Response |
---|---|---|
issue
+noauth
POST /identity/v2/token/issue
{{< tabs " issue " >}}
{{< tab "Request Example" >}}
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
{{< highlight json >}} { "credentials": { "user_id": "wonny@cloudforet.io", "password": "Password0*" }, "auth_type": "LOCAL", "domain_id": "domain-123123a" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
grant
+noauth
POST /identity/v2/token/grant
{{< tabs " grant " >}}
{{< tab "Request Example" >}}
grant_type (GrantType)
Required
token (string)
Required
scope (Scope)
Required
timeout (int32)
permissions (string)
Repeated
domain_id (string)
workspace_id (string)
{{< highlight json >}} { "grant_type": "REFRESH_TOKEN", "token": "your_refresh_token_from_issue", "scope": "DOMAIN", "domain_id": "domain-123123a" } {{< /highlight >}} {{< /tab >}}
{{< /tabs >}}
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
Last updated