This repository was archived by the owner on Jun 12, 2021. It is now read-only.

Description
I believe that the client registration should be able to use the BearerHeader client_authn_method for simple authentication.
However, if configured to use it, it never checks the token as there is no get_client_id_from_token method implemented in oidcendpoint/oidc/registration.py. The method is called here
|
auth_info["client_id"] = get_client_id_from_token( |
.
As a result it returns "" and no exception is raised.
I tried implementing a get_client_id_from_token method similarly to userinfo's one, but then there's a problem with unauthenticated registration as the No token exception is raised, because it cannot find a client_id in the request (correctly) and there is a get_client_id_from_token implemented. I think the last check should be corrected.
|
elif not client_id and get_client_id_from_token: |