ubicloud/vendor
Jeremy Evans 11dc410605 Update omniauth_oidc to work with additional providers
Previously, I had only tested with the authorization server example
that comes with rodauth-oauth. When I did additional testing using
oidc-tester.compile7.org, I found that it didn't work, for a few
reasons:

* Content type of form for token endpoint POST should be
  application/x-www-form-urlencoded. I was previously using
  application/json, but while that worked for the rodauth-oauth
  authorization server, it is non-standard.

* It looks like a bug, but while oidc-tester.compile7.org
  advertises it supports client_secret_basic, it actually appears
  to only support client_secret_post. Include the client id and
  secret both in the header and in the body so that it should work
  with either type.

* Check the aud entry of the id_token, instead of the client_id
  entry.  The aud entry must contain the client id (or equal the
  client id if it is a string).

These changes allow successfully allow authentication with both
the rodauth-oauth authorization server and oidc-tester.compile7.org.
2025-07-08 00:10:06 +09:00
..
omniauth_oidc.rb Update omniauth_oidc to work with additional providers 2025-07-08 00:10:06 +09:00