fief-dev / fief

Users and authentication management SaaS
https://www.fief.dev
Other
577 stars 48 forks source link

Cloud && FastAPI: Auth Error[invalid_request]: g. #119

Closed michaldev closed 1 year ago

michaldev commented 1 year ago

Describe the bug

I have an error that doesn't reveal any details.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 127.0.0.1:8000/docs
  2. Click on lock icon
  3. Fill data and click authorize

Zrzut ekranu z 2022-11-28 13-42-03

michaldev commented 1 year ago

And on react: Zrzut ekranu z 2022-11-28 14-11-48

frankie567 commented 1 year ago

Could you show the actual response of the request? You should be able to get it from the Network tab of your browser.

michaldev commented 1 year ago

{error: "invalid_client"}

I have correctly entered the client ID.

frankie567 commented 1 year ago

Since you seem to call your client from a frontend like React, did you remember to set it as a Public client?

michaldev commented 1 year ago

Ahh, ok. I have confidental. But why this client doesn't work with fastapi?

frankie567 commented 1 year ago

Maybe there's something else! If you show me the response of the request done by FastAPI auto documentation (again, by looking at the Network tab of your browser), I may have insights.

michaldev commented 1 year ago

In network I don't see anything. But I found something more. when I click on lock icon here (top position) it works: image

Doesn't work when I click lock icon around the endpoint, like this: image