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

code_verifier being set to :none #406

Closed
ah0y opened this issue Dec 12, 2024 · 2 comments
Closed

code_verifier being set to :none #406

ah0y opened this issue Dec 12, 2024 · 2 comments
Assignees

Comments

@ah0y
Copy link

ah0y commented Dec 12, 2024

oidcc version

3.2.6

Erlang version

26.0.0

Elixir version

1.16.0

Summary

This might not be an issue with this library but rather an issue with the OIDCC plug, but I'm finding that when PKCE is set to :none and when CodeChallengeMethodsSupported is not empty that this line is setting code_verifier to :none.

Should there be a guard on this line around PKCE being none?

add_pkce_verifier(BodyQs, #{pkce_verifier := PkceVerifier} = Opts, ClientContext) when PkceVerifier /= none ->

Current behavior

The oidcc_plug is setting pkce to:none and if CodeChallengeMethodsSupported is not empty the oidcc library will attempt to set code_verifier to :none when what's expected is a string.

How to reproduce

Have CodeChallengeMethodsSupported not be an empty list when using the oidcc_plug.

Expected behavior

That PKCE not be requested when require_pkce is set to false.

@ah0y ah0y added the bug label Dec 12, 2024
@maennchen
Copy link
Member

@ah0y Am I correct to assume that you have the same error as this issue?

erlef/oidcc_plug#29

If yes, it's a duplicate issue.

@maennchen maennchen self-assigned this Dec 12, 2024
@maennchen maennchen added duplicate and removed bug labels Dec 12, 2024
@ah0y
Copy link
Author

ah0y commented Dec 12, 2024

@maennchen yep getting the same error

@ah0y ah0y closed this as completed Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants