Closed kwent closed 2 months ago
I think this was happening due to a change in version 2.0 of the oauth2 gem:
https://gitlab.com/oauth-xx/oauth2/-/blob/main/CHANGELOG.md?ref_type=heads#200---2022-06-21-tag
BREAKING: Set
:basic_auth
as default for:auth_scheme
instead of:request_body
.
I've updated the token exchange endpoint to also accept credentials passed with basic auth, so this gem should work with both major versions of oauth2 now.
I can confirm this is going through now.
Cf. https://developers.intercom.com/docs/build-an-integration/learn-more/authentication/setting-up-oauth#trade-your-authorization-code-for-an-access-token
Bonus: https://github.com/Skaelv/testapp-intercom-omniauth sounded like a good idea to test end to end before releasing but it's now 404