Skip to content

V3 Auth not properly implemented #3440

@m0t1x

Description

@m0t1x

OpenStack has two DOMAIN configuration parameters: OS_PROJECT_DOMAIN_NAME and OS_USER_DOMAIN_NAME and they are not the same as just OS_DOMAIN_NAME. I wasn't able to authenticate on OpenStack system because OS_DOMAIN_NAME was used in both cases.

Auth body should look like this:

{
    "auth": {
        "identity" : {
            "methods": ["password"],
            "password": {            
                "user": {                
                    "name": "<OS_USERNAME>", 
                    "domain": { "name": "<OS_USER_DOMAIN_NAME>" }, 
                    "password": "<OS_PASSWORD>"
                }
            }
        },
          "scope": {
            "project": {
                "domain": {
                    "name": "<OS_PROJECT_DOMAIN_NAME>"
                },
                "name": "<OS_PROJECT_NAME>"
            }
        }
    }
}

This is the debug content which I got using openstack.AuthenticatedClient

{
    "auth": {
        "identity": {
            "methods": [
                "password"
            ],
            "password": {
                "user": {
                    "domain": {
                        "name": "my_domain"
                    },
                    "name": "USER",
                    "password": "*****"
                }
            }
        },
        "scope": {
            "project": {
                "domain": {
                    "name": "my_domain"
                },
                "name": "PROJECT"
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions