Skip to content

Auth: add OAuth authentication method #1418

@kayrus

Description

@kayrus

API reference

Keystone code:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions