This API is used to obtain an unscoped token in SP-initiated federated identity authentication mode.
An unscoped token cannot be used for authentication. If a federated user needs to use a token for authentication, obtain the scoped token based on section Obtaining a Scoped Token.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
idp_id |
Yes |
String |
ID of an identity provider. |
protocol _id |
Yes |
String |
ID of a protocol. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Accept |
No |
String |
|
PAOS |
No |
String |
GET /v3/OS-FEDERATION/identity_providers/idptest/protocols/saml/auth
Response Item |
Parameter |
Type |
Description |
---|---|---|---|
X-Subject-Token |
header |
String |
Signed unscoped token. |
token |
body |
Object |
Information of the unscoped token obtained in federated identity authentication mode, including methods and user information. |
{ "token": { "issued_at": "2017-05-23T06:54:51.763000Z", "expires_at": "2017-05-24T06:54:51.763000Z", "methods": [ "mapped" ], "user": { "domain": { "id": "e31ac82d778b4d128cb6fed37fd72cdb", "name": "exampledomain" }, "id": "RMQTgtjjSNGDcKy7oUmI3AZg7GgsWG0Z", "name": "exampleuser", "OS-FEDERATION": { "identity_provider": { "id": "exampleuser" }, "protocol": { "id": "saml" }, "groups": [ { "id": "b40189e26ea44f959877621b4b298db5" } ] } } } }
Status Code |
Description |
---|---|
200 |
The request is successful. You need to further obtain user information. |
201 |
The request is successful, and a token is returned. |
302 |
The system switches to the identity provider authentication page if the request does not carry user information of the identity provider. |
400 |
The server failed to process the request. |
401 |
Authentication failed. |
403 |
Access denied. |
405 |
The method specified in the request is not allowed for the requested resource. |
413 |
The request entity is too large. |
500 |
Internal server error. |
503 |
Service unavailable. |