-
Notifications
You must be signed in to change notification settings - Fork 583
Auth: add OAuth authentication method #1418
Copy link
Copy link
Closed
Description
Keystone code:
- https://github.com/openstack/keystone/blob/master/keystone/auth/plugins/oauth1.py
- https://github.com/openstack/keystone/blob/master/keystone/api/os_oauth1.py
Even using the generated token, there is an issue:
*terraform.EvalOpFilter, err: Request forbidden: [POST http://identity:5000/v3/auth/tokens], error message: {"error": {"message": "You are not authorized to perform the requested action: Using OAuth-scoped token to create another token. Create a new OAuth-scoped token instead.", "code": 403, "title": "Forbidden"}}
2019/01/29 12:57:36 [DEBUG] OpenStack Request URL: POST https://identity/v3/auth/tokens
2019/01/29 12:57:36 [DEBUG] OpenStack Request Headers:
Accept: application/json
Content-Type: application/json
User-Agent: Terraform/0.11.7 gophercloud/2.0.0
2019/01/29 12:57:36 [DEBUG] OpenStack Request Body: {
"auth": {
"identity": {
"methods": [
"token"
],
"token": {
"id": "***"
}
}
}
}
2019/01/29 12:57:37 [DEBUG] OpenStack Response Code: 403
2019/01/29 12:57:37 [DEBUG] OpenStack Response Headers:
Content-Length: 207
Content-Type: application/json
Date: Tue, 29 Jan 2019 11:57:37 GMT
Server: nginx/1.15.3
Strict-Transport-Security: max-age=15724800; includeSubDomains
Vary: X-Auth-Token
X-Openstack-Request-Id: req-89efad60-a071-4287-83c5-fd3cd8eca1a7
2019/01/29 12:57:37 [DEBUG] OpenStack Response Body: {
"error": {
"code": 403,
"message": "You are not authorized to perform the requested action: Using OAuth-scoped token to create another token. Create a new OAuth-scoped token instead.",
"title": "Forbidden"
}
}
Ref: #1214
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels