openid federation mapping

asked 2019-06-14 07:31:07 -0500

Kassav gravatar image

Hello, I'm using an openstack federation with custom mapping.

My issue is that local name come with an additionnal "@hostname" from my IDP

username@hostname instead os username

I want create a mapping and remove that extra part

[
    {
        "local": [
            {
                "domain": {
                    "name": "ABC"
                },
                "user": {
                    "name": "{0}",
                    "type": "local",
                    "domain": { "name": "ABC"}
                },
                "group": {
                    "domain": {
                        "name": "ABC"
                    },
                    "name": "Federated Users"
                }
            }
        ],
        "remote": [
            {
                "type": "HTTP_OIDC_SUB"
            }
        ]
    }
]

I tried to use something like this but is doesn't work, any idea?

                "name": "{{0[:-11]}}",
edit retag flag offensive close merge delete