Getting request unauthorized

callback?error=request_unauthorized&error_description=The+request+could+not+be+authorized&error_hint=Check+that+you+provided+valid+credentials+in+the+right+format.&state=TPbJ6Qf%2FPdhSf66fr8jrFw%3D%3D

We are getting request unauthorized even when a login challenge is newly generated some of time.

Could be because

  1. Your client credentials are not valid
  2. You’re sending client credentials in the e.g. POST body, but it’s expected in the Authorization header (or the other way around)

Recommendation: Check the hydra logs