caddy-security icon indicating copy to clipboard operation
caddy-security copied to clipboard

question: google oauth, send "prompt" query param

Open highfredo opened this issue 2 years ago • 5 comments

Is it possible to send extra query params when doing oauth with google?

https://developers.google.com/identity/openid-connect/openid-connect#authenticationuriparameters

I would like to send "prompt=select_account" to let users choose which google account they want to use.

Thanks you!

highfredo avatar Oct 11 '23 16:10 highfredo

@highfredo , I don't think this is possible at the moment. This would need to be a feature.

greenpau avatar Dec 02 '23 17:12 greenpau

Discord uses the same prompt parameter to bypass the authorization prompt if they've already authorized in the past, which would allow users to log in much quicker.

https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-authorization-url-example

tyrantlink avatar Jan 13 '24 09:01 tyrantlink

Are there any plans to add this? I can try to submit a PR if you don't have the time to do it.

jvvan avatar Jul 17 '24 23:07 jvvan

I can try to submit a PR if you don't have the time to do it.

@jvvan , please do. 🤝 See https://github.com/greenpau/caddy-security/blob/main/CONTRIBUTING.md#development-environment for reference. I don't use Google as much. Any help is appreciated.

greenpau avatar Jul 18 '24 00:07 greenpau