ctron / yew-oauth2

General purpose OAuth2 component for Yew
Apache License 2.0
45 stars 18 forks source link

Question Adding a parameter to be passed to the authorize endpoint #38

Open AlexandreRoba opened 2 months ago

AlexandreRoba commented 2 months ago

Hello,

I'm using yew-oauth with auth0. I have setup the password less login, but in order to have in offered to the user when loggin in I need to specify the connection name authorize/?connection=sms... .

https://auth0.com/docs/authenticate/passwordless/passwordless-with-universal-login

what would be the best way to do this using yew-oauth2? I can't seem to find a possibility to add custom parameters to the configuration.

Regards, Alex.

ctron commented 2 months ago

The LoginOptions have a query field which should do the trick. And the login options are part of OAuth2Properties.