Open roddyherries opened 2 years ago
It looks like an excellent addition to the OIDC connector! Thanks for the idea.
The only concern about implementation is that this feature requires splitting command line parameters into two lists: params maintained by dex and additional params.
Hi @nabokihms - yes, agreed on that additional check for splatting standard OIDC params. I've implemented this on a fork for our own internal use for now - I'll raise a PR if that helps?
Yeah, sure. I think it is worth seeing the code and reviewing it.
Hi @nabokihms - could you clarify something please ...
The only concern about implementation is that this feature requires splitting command line parameters into two lists: params maintained by dex and additional params.
By "maintained by dex" do you mean only the existing auth params managed in oidcConnector.LoginURL
, i.e hd
, acr_values
and prompt
or some other list?
Hi @nabokihms, I've raised a draft PR for this change https://github.com/dexidp/dex/pull/2546.
Hi @nabokihms , I've opened a new PR for this issue: https://github.com/dexidp/dex/pull/2631
@roddyherries I've created a refreshed PR of this issue here: https://github.com/dexidp/dex/pull/3831.
I've made sure that your original work is still there and that there is a mention of you as an author. Hope you don't mind!
Preflight Checklist
Problem Description
Some IdPs support login features that are accessible via additional parameters on an authorization request. The current OIDC connector implementation provides no mechanism to configure additional authorization request parameters and hence the IdP specific features are out of reach when using DEX.
For example, when authorizing with Auth0 a client can pass an
organization
parameter to tell Auth0 which organization the user must authenticate via:Proposed Solution
Extend the existing OIDC configuration with new map element
additionalAuthRequestParams
.Enhance
LoginURL
to add these parameters to the auth request:Alternatives Considered
No response
Additional Information
No response