krdlab / haskell-oidc-client

OpenID Connect 1.0 client (RP) library for Haskell

Home Page:https://hackage.haskell.org/package/oidc-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignore unsupported algorithms

centromere opened this issue · comments

I am using Keycloak as my OIDC provider, and the well-known endpoint advertises PS384 as a supported signing algorithm. Parsing the JSON fails in this case, however this is not ideal. Would it be possible to ignore unsupported algorithms?

We just started having the same issue: algorithme PS256 breaks.

  • How about using eitherDecode instead of decode in Web.OIDC.Client.Discovery#discover? At least this would help investigating why the library breaks
  • At least be able to "not break" when algorithms are unknown? E.g. via environment variable

@centromere @sir4ur0n
Thank you for your report and suggestions!

I think the issue was resolved by #36. I will release a new version.

0.5.0.0 released. #37

Excellent, thank you for your work! We have already upgraded 😄