最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

authentication - How to authenticate in Swagger UI for OAuth2PasswordBearer (OAuth2, password) - Stack Overflow

programmeradmin3浏览0评论

I am working on a fastAPI server based project and till now everything worked fine. But during testing one of the endpoints, I wanted to authenticate my login, so I generated an access token. But when I try to authenticate, I am thrown with an error

auth errorError: Unprocessable Entity

I am unable to figure out how to fix this. I am truly lost as to what is to be done.

An image of what the auth pop up shows

The locked endpoints in my project

edit: I have fixed the path and added a '/' after login to make it 'auth/login/' so now during my try to test the end point it shows only 401 error, but still the same 422 error when trying to authenticate. Also still don't know why it asks me client id and client secret.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论