auth_oidc: models: res_users: Send cleint secret as well#909
auth_oidc: models: res_users: Send cleint secret as well#909okawo80085 wants to merge 2 commits intoOCA:18.0from
Conversation
Otherwise most OIDC providers will fail the token endpoint call Signed-off-by: Afiya Thorn <afiya@nafoarmories.org>
|
Hi @sbidoul, |
|
Oh yea and it's also needed in 19.0 and any other version that wants to use OIDC providers that verify client secrets when processing token calls |
|
Not sure it is a bug. Possibly a missing feature. Section 9. here seems relevant: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication Actually I'm not sure it is ok to send the client secret in the body unconditionally. https://www.rfc-editor.org/rfc/rfc6749.txt section 2.3.1 says Including the client credentials in the request-body using the two parameters is NOT RECOMMENDED. So yeah, I think this is not obvious at all and requires more investigation. Do you have more evidence to share? |
|
Well, with PocketID (the OIDC provider im running) it's not optional, so if not unconditionally, it should at least be possible to enable it using a config option, if you show me the docs or an example on how to access options from odoo.conf i'll add in like 5 minutes |
|
Or wait, better yet, i'll add an option for it in the Oauth provider edit page |
|
As for the bug itself, i can show you the logs of what happens if i dont provide the |
|
Here are the logs btw |
|
If i add the |
|
Now it's not enabled by default, but the user can still enable it if their OIDC provider requires it |
So it's not enabled by default, but the user can still enable it if their OIDC provider requires it Signed-off-by: Afiya Thorn <afiya@fireweed.com.ua>
|
Forgot to disable by auto format and it changed more code then i needed to touch, so repushed |
Otherwise most OIDC providers will fail the token endpoint call
This is a bug fix btw