this post was submitted on 22 Jun 2023
8 points (100.0% liked)

Programming

13368 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 1 year ago
MODERATORS
 

I'm working on an macOS client app and was curious what was needed to authorize/login a user to get a token for the auth header?

The lemmy documentation for login doesn't seem to work (sends 400 response back) and it also doesn't seem to work with oauth?

I got oauth working for mastodon but those same endpoint calls don't seem to work for lemmy.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago

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!