Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for configurable prompt type for Google connector #3475

Merged

Conversation

abhisek
Copy link
Contributor

@abhisek abhisek commented Apr 13, 2024

Overview

Add support for configurable prompt type for Google Connector. Reference #3450

What this PR does / why we need it

  • Allows the user to explicitly configure the value of prompt parameter in login URL generated by Google connector

Special notes for your reviewer

Ref #3450

The original ask was to avoid the user experience of consent screen every time authentication flow goes through dex into Google by skipping prompt=consent flag. As per OIDC specification, there is no valid value for prompt param to achieve this. So this PR just allows the ability to set the value of prompt parameter through configuration. Setting an explicit "" (empty) value for prompt should be functionally equivalent for skipping it for Google connector

@abhisek abhisek force-pushed the feat/google-connector-configurable-prompt-type branch from f92ae9d to 188d22c Compare April 14, 2024 06:40
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! The only thing left is satisfying the linter.

Oh, and one more. Could you please also open a PR to the website repo with the doc fix? https://dexidp.io/docs/connectors/google/

Signed-off-by: abhisek <abhisek.datta@gmail.com>
@abhisek
Copy link
Contributor Author

abhisek commented Apr 15, 2024

@nabokihms Thanks for the comment. I have fixed the linter issue. I have also raised a separate PR to the website repo to update documentation.

dexidp/website#174

Signed-off-by: Maksim Nabokikh <max.nabokih@gmail.com>
Copy link
Member

@nabokihms nabokihms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot. Great contribution!

@nabokihms nabokihms merged commit 677ab36 into dexidp:master Apr 15, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants