# BIG-IQ Rest API: basic authentication failure

**URL:** <https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727>\
**Category:** Technical Forums\
**Tags:** big-iq, icontrolrest, security, application-delivery\
**Created:** [January 26, 2017, 4:56pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727 "2017-01-26T16:56:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khang\_307109](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Khang\_307109](https://community.f5.com/u/Khang_307109)\
**Post date:** [January 26, 2017, 4:56pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727/1 "2017-01-26T16:56:22Z")

</div>

Hello,

Please bare with me as I’m new to F5 product. I ran into authentication failure when attempting to make a Rest API call to the Big-IQ. Here are what happening: after bringing up a Big-IQ VM, I was able to login and apply the license to activate it. I was able to navigate through pages in the GUI. However, when I attempted to make a simple Rest API call using the same username/password to login to the GUI, it always failed with “401 Authorization Required”. Nothing fancy, I’m using the basic authentication as following:

$ curl -k -u admin:admin -H “Content-Type:application/json” -X GET

401 Authorization Required

webd

I tried different API and got the same error. I also tried to Base64 encode the credentials and explicitly specified it as an HTTP header, but it failed the same way:

$ curl -k -H “Authorization: Basic YWRtaW46YWRtaW4=” -H “Content-Type:application/json” -X GET

Did I miss something in order to grant API access permission for the account? Btw, I’m using a trial license and the account has Administrator role. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![stan\_piron](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Post date:** [January 26, 2017, 5:01pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727/2 "2017-01-26T17:01:12Z")

</div>

Hi,

Are you using trial or evaluation license?

if you are using trial license with trial virtual appliance, the version is 11.3 which does not support REST icontrol.

if you are using an evaluation license, which version did you install?

---

<div class="post-metadata">

**Author:** ![Khang\_307109](https://avatars.discourse-cdn.com/v4/letter/k/b3f665/32.png) [@Khang\_307109](https://community.f5.com/u/Khang_307109)\
**Post date:** [January 27, 2017, 8:52pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727/3 "2017-01-27T20:52:30Z")

</div>

I decided to try the earlier version (BigIQ version 5.0). Basic authentication worked just fine. I’m able to make Rest API calls with no issues. I’m wondering if anyone runs into the same issue with BigIQ v5.1?

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [February 3, 2017, 3:15pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727/4 "2017-02-03T15:15:41Z")

</div>

I did. Same thing.

/Patrik

---

<div class="post-metadata">

**Author:** ![Patrik\_Jonsson](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/patrik_jonsson/32/20827_2.png) [@Patrik\_Jonsson](https://community.f5.com/u/Patrik_Jonsson)\
**Post date:** [February 3, 2017, 3:25pm UTC](https://community.f5.com/t/big-iq-rest-api-basic-authentication-failure/31727/5 "2017-02-03T15:25:49Z")

</div>

Basic authentication is disabled by default since 5.1:

> **[myF5](https://my.f5.com/manage/s/article/K43725273)**

/Patrik
