Quantcast
Channel: TrueNAS Community
Viewing all articles
Browse latest Browse all 185907

API Authentication Troubles

$
0
0
I'm having issues Authenticating with the Rest API.

I am running TrueNAS-12.0-U2.1, and everything is working as expected except for the API.

I have tried both Basic authentication and Bearer Authentication, my goal is to use restsharp but I have also tried python and curl and all of them return 401: Unauthorized.

I have tried most methods of authenticating with curl but they generally go something like this.

curl -H 'Accept: application/json' -H "Authorization: Bearer...

API Authentication Troubles

Viewing all articles
Browse latest Browse all 185907

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>