# Bearer token And Basic auth (htpassword protected site)

**URL:** <https://community.postman.com/t/bearer-token-and-basic-auth-htpassword-protected-site/33586>\
**Category:** Help Hub\
**Created:** [March 17, 2022, 10:23am UTC](https://community.postman.com/t/bearer-token-and-basic-auth-htpassword-protected-site/33586 "2022-03-17T10:23:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arbiz](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@arbiz](https://community.postman.com/u/arbiz)\
**Post date:** [March 17, 2022, 10:23am UTC](https://community.postman.com/t/bearer-token-and-basic-auth-htpassword-protected-site/33586/1 "2022-03-17T10:23:14Z")

</div>

Is it possible to submit a post request with a bearer token on a .htpassword protected site ? We have a preproduction server protected by a simple .htaccess and .htpassword and all calls to our api fail (unauthorized) so how is it possible to send both a bearer token protected and basic auth protected request ?  
Thanks for your help.

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [March 17, 2022, 6:54pm UTC](https://community.postman.com/t/bearer-token-and-basic-auth-htpassword-protected-site/33586/2 "2022-03-17T18:54:02Z")

</div>

Hey! First I’d like to welcome you to the Postman community and congrats on your first post! 🎊

Have you tried using both the Authorization tab **and** the Headers tab to setup your requests?  
For example, you could use the Authorization tab for your [bearer token](https://learning.postman.com/docs/sending-requests/authorization/#bearer-token) but then the Headers tab for the [Basic Auth](https://stackoverflow.com/questions/32157546/trying-to-use-postman-and-having-trouble-setting-basic-access-authentication-h/32157792#32157792).

Hope this helps! 😄

---

<div class="post-metadata">

**Author:** ![suxumi](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/suxumi/32/28833_2.png) [@suxumi](https://community.postman.com/u/suxumi)\
**Post date:** [June 4, 2024, 9:37am UTC](https://community.postman.com/t/bearer-token-and-basic-auth-htpassword-protected-site/33586/3 "2024-06-04T09:37:26Z")

</div>

You can send request with both auth keys, but it wouldn’t be accepted by the server as both request uses the same key `Authorization` .  
So, the answer is no, you cant use both authorization requests at the same time.
