openid_connect icon indicating copy to clipboard operation
openid_connect copied to clipboard

Support for configuring token endpoint authentication method

Open haakonst opened this issue 4 years ago • 6 comments

Support for configuring token endpoint authentication method with the setting :token_endpoint_auth_method per provider. This defaults to "client_secret_post" which was originally supported. Another method "client_secret_basic" is now also supported, which uses HTTP Basic authentication.

I needed this to support Vipps Login as OIDC provider, which unfortunately doesn't support the "client_secret_post" authentication method.

haakonst avatar Nov 17 '20 18:11 haakonst

+1 for this. I'm in a similar situation, and would rather not fork this repo just for this functionality.

andrefau avatar Dec 06 '20 15:12 andrefau

This requires test support

bcardarella avatar Dec 11 '20 16:12 bcardarella

I made an attempt to add a test. For this I had to add a new provider in the config and adapt the mock worker and some of the other tests to handle multiple providers/configs.

haakonst avatar Dec 17 '20 09:12 haakonst

I needed this to support Vipps Login as OIDC provider, which unfortunately doesn't support the "client_secret_post" authentication method.

For what it's worth, I contacted Vipps support and they enabled the "client_secret_post" method for us. I still think it would be nice if this repo supported both methods though.

andrefau avatar Dec 17 '20 10:12 andrefau

Hi @bcardarella is this something you'd consider adding or can I help this along in some way? I'm having the same issue that the IdP I'm using currently only supports the client_id/client_secret as basic auth for the token endpoint.

larshesel avatar Feb 17 '22 10:02 larshesel

@larshesel There is another effort underway to develop a spec compliant openidconnect. I think that's where the focus for development will be and I've offered up this namespace to them. So for the time being there won't be an additional development on this specific implementation

bcardarella avatar Feb 19 '22 00:02 bcardarella