-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Looking at https://fasjson.fedoraproject.org/docs/v1/ the examples worked for me in a browser, but didn't work on the command line:
$ curl -X 'GET' 'https://fasjson.fedoraproject.org/v1/me/' -H 'accept: application/json'
{"message": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required."}
It took me some time to figure out why. The other documentation makes it clear that those curl commands need to include --negotiate -u : :
$ curl --negotiate -u : -X 'GET' 'https://fasjson.fedoraproject.org/v1/me/' -H 'accept: application/json'
{"result": {"dn": "uid=kparal,cn=users,cn=accounts,dc=fedoraproject,dc=org", "username": "kparal", "service": null, "uri": "https://fasjson.fedoraproject.org/v1/users/kparal/"}}
Please fix the documentation to include those args, thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels