this post was submitted on 22 Jun 2023
11 points (100.0% liked)
Programming
13386 readers
1 users here now
All things programming and coding related. Subcommunity of Technology.
This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It seems OAuth2 hasn't implemented yet. At this time, to get
auth
value, username and password are required:Since the endpoint recieves JSON then returns JSON, you may need to send following HTTP headers explicitly:
Looking at the lemmy documentation I assumed they wanted form data and sent that along with application/x-www-form-urlencoded for the Content-Type.
As you mention what they actually want is JSON and application/json Content-Type.
Thanks for the info!