Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Unknown hash: $provider_name #36

@peppelinux

Description

@peppelinux

when we configure a client with name, eg "django_provider" and the RP gets the authz code, when it GET to token endpoint the following exception raises

2021-04-28 16:31:59,581 werkzeug INFO 127.0.0.1 - - [28/Apr/2021 16:31:59] "GET /rp?uid=&iss=django_provider HTTP/1.1" 303 -
2021-04-28 16:32:03,515 views ERROR Unkown issuer: django not among ['django_provider']
2021-04-28 16:32:03,515 views ERROR Unknown hash: django
2021-04-28 16:32:03,516 werkzeug INFO 127.0.0.1 - - [28/Apr/2021 16:32:03] "GET /authz_cb/django?state=qCvOHPGIlk9buT1AtCOtUlPY9mlU6L88&scope=openid+profile+email+address+phone&code=Z0FBQUFBQmdpWEhqOVpFcW50TkpHbmZWRjBiNEJYWHFIcVVpWWVRdWVXdlBHMk5XR2xtd3dwSl8tcm1oanlUVWdfMUgxMWRTbnJLNWtUTU9VVXI0UWNOdTY5NGRncGVLQ3lxalkyNHl4MzJGS1NwTjVCWnVfUmEtX2J2cGhqQTcxNkdIb2k1NEd4WWMwV3Rqb240cjJLNVEyeWU4TnhQZWpXeGlmcUdsTXRRWHgwazA1bm0tVWpIZU9KRkdvbXdQS3FfZExSM2ZfXzFORGZ1YXRuNThxVnd5Smd5VVVpY1p3cHUwM0JTOGhoalIzTzVzZ3hYcUJMOD0%3D&session_state=b6fff56b4318daa77f1af7cd866368011a25103badf670bb84541ef1a270733d.v9km2Vj05EX3veNU&iss=https%3A%2F%2F127.0.0.1%3A8000&client_id=zT32jWyZu2KD HTTP/1.1" 400 -

This is due to the need to configure the same provider name as final path element in every uris in the configuration.
I can fix this problem simply by adding django_provider in every uris paramenter.

probably we should decouple them, allowing each client to be configured with randomic/customized uris path

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