Skip to content

feat(zitadel) use more secure PKCE flow #438

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

Merged
merged 1 commit into from
Jul 31, 2025
Merged

Conversation

julien1619
Copy link
Contributor

This PR adds the PKCE flow to the Zitadel provider as it's recommended by the provider, inspired by what was done in azureb2c provider.

Copy link

pkg-pr-new bot commented Jul 30, 2025

Open in StackBlitz

npm i https://pkg.pr.new/atinux/nuxt-auth-utils@438

commit: 00b80ac

@atinux
Copy link
Owner

atinux commented Jul 30, 2025

By looking at https://oauth.net/2/pkce/ it seems that client secret is still recommend and PKCE is not replacing client secret, could you please add it back or justify why we can remove it @julien1619 ?

@julien1619
Copy link
Contributor Author

julien1619 commented Jul 30, 2025

Ok I will add it back but as an optionnal value because in Zitadel if you choose PKCE you won't have any secret generated.

Here is the related issue in Zitadel: zitadel/zitadel#7110

@atinux
Copy link
Owner

atinux commented Jul 31, 2025

Please mention me when ready @julien1619

remove clientSecret, useless with PKCE
add clientSecret as an optional

fix
@julien1619
Copy link
Contributor Author

@atinux It seems Ok for me now.

Copy link
Owner

@atinux atinux left a comment

Choose a reason for hiding this comment

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

Thank you!

@atinux atinux merged commit 615fcf9 into atinux:main Jul 31, 2025
4 checks passed
@julien1619 julien1619 deleted the patch-1 branch July 31, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants