API Basic Authentication

Basic Authentication is provided via -u input parameter ( if you’re using cURL)

example:

curl -u user123@gmail.com:mySuperS3cretPassw0rd https://your-app.anvil.app/_/api/users/42

Could we also have it work when basic authentication is passed in the header

curl --location --request POST 'https://your-app.anvil.app/_/api/users/42' \
--header 'Authorization: Basic bHNhZW56OTEwNEBnbWFpbC5jb206dGVzaXWmNc=='

This would make working with postman easier :slight_smile:

Thank you!

EDIT:

The username:password is base64 encoded, just something that would have ot be handled.

1 Like

This is embarrasing…I was typing my password incorrectly! it does task in basic authorization in the header. :sweat_smile:

Realized this after successfully sending a request via external script.

1 Like