openid / AppAuth-JS

JavaScript client SDK for communicating with OAuth 2.0 and OpenID Connect providers.
Apache License 2.0
975 stars 162 forks source link

Request ended with an error 400 #193

Closed SlowLow32 closed 2 years ago

SlowLow32 commented 3 years ago

Expected Behavior

[REQUIRED] Describe expected behavior

Return TokenREquest Response

Describe the problem

Basically, I'm trying to get AppAuth-JS to work with WHMCS OpenID, but having little success. It seems to work with google but when I switch it to WHMCS config, it fails after it makes a TokenRequest and then it's waiting for the TokenResponse, instead it returns "Request ended with an error 400". I have tested the WHMCS OpenID configuration with Postman, and it worked but does not work when using the Github link below.

Do I need a refreshToken to complete the process? Looks like I need it, but WHMCS doesn't return it, any way to bypass this?

The left side of the image uses google and the right side uses WHMCS

image

[REQUIRED] Environment

Using the below git for testing. https://github.com/googlesamples/appauth-js-electron-sample

tikurahul commented 2 years ago

This is an IDP issue, and not specifically an issue with AppAuth.