-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can OAuth login via Json data instead of Form? #1431
Comments
Look inside the |
Thanks for the help here @dmig-alarstudios ! 👏 🙇 Thanks for reporting back and closing the issue @LouisYZK 👍 |
If one makes a custom class as per @dmig-alarstudios suggestion, is it possible to also (auto-)update the OAuth Swagger form to use |
@bartwroblewski I couldn't find a solution for that ended up with a duplicate endpoint accepting |
@dmig-alarstudios I have a requirement where frontend is posting content using content-type = "application/json". Due to OAuth2PasswordRequestForm,I am getting error as "username field required". Is there a way to add support of application/json or any middleware to convert incoming json to www-form-urlencoded? |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description
I want to use the jwt auth, and learn the tutorial about it. There are sth confused me:
If login success, the token will be returned , and next time you send other request need auth like
I am sorry about my English and less experience about auth in Web, wish you could solve my confusion. Thanks in advance.
The text was updated successfully, but these errors were encountered: