Replies: 1 comment 5 replies
-
Yes, you'll need to call passport exactly the way you described (minus the prompt) but to enrich the authorization request parameters you'll need to overload the authorizationRequestParams method that will then receive those arguments you passed to authenticate, you'll return the additional parameters you want included in the authorization request from mthe authorizationRequestParams function. Lines 172 to 197 in 626749b Why this is the way passport is when it comes to types I don't know, I am not maintaining those types (assuming you mean and installed @types/passport). |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to forward userId or mail to the oidc provider via login_hint for better user experience. However passport does not support query params for the authenticate route
openid-client/src/passport.ts
Line 441 in f020185
Would it be enough to add
login_hint
similar toprompt
here?openid-client/src/passport.ts
Line 192 in f020185
I am just not sure how to forward this to passport. Since typescript is not even showing me the
prompt
on the authenticate function, but I think it would be like this, right?passport.authenticate(provider, { login_hint: '[email protected]', prompt: 'does not exist for intellisense' })
Beta Was this translation helpful? Give feedback.
All reactions