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

Exception in ConfigureDPoP when using System.IdentityModel.Tokens.Jwt 8.0.2 #446

Open
kurtcodemander opened this issue Sep 8, 2024 · 0 comments

Comments

@kurtcodemander
Copy link

Calling the ConfigureDPoP method on OidcClientOptions when using System.IdentityModel.Tokens.Jwt 8.0.2 throws the following exception:

{"Attempt by method 'IdentityModel.OidcClient.DPoP.DPoPProofTokenFactory..ctor(System.String)' to access method 'Microsoft.IdentityModel.Tokens.CollectionUtilities.IsNullOrEmpty<System.Char>(System.Collections.Generic.IEnumerable`1)' failed."}

After cloning this repo, upgrading to System.IdentityModel.Tokens.Jwt 8.0.2 and .net 8, there's a compilation error in the constructor of DPoPProofTokenFactory on this line:

if (_jwk.Alg.IsNullOrEmpty())

Changing it to if (string.IsNullOrEmpty(_jwk.Alg)) fixed the problem for me.

Maybe a contributor with better knowledge of this repo could look into it and fix it properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant