# Authentication

**URL:** <https://discussions.flightaware.com/t/authentication/61792>\
**Category:** AeroAPI\
**Created:** [March 5, 2020, 5:38am UTC](https://discussions.flightaware.com/t/authentication/61792 "2020-03-05T05:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmaxy](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/emmaxy/32/59760_2.png) [@emmaxy](https://discussions.flightaware.com/u/emmaxy)\
**Post date:** [March 5, 2020, 5:38am UTC](https://discussions.flightaware.com/t/authentication/61792/1 "2020-03-05T05:38:53Z")

</div>

[http://flightxml.flightaware.com/json/FlightXML2/](http://flightxml.flightaware.com/json/FlightXML2/)

What are the params of username and FlightXML key when i want to pass them to the basic auth header? please assist me

---

<div class="post-metadata">

**Author:** ![bovineone](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/bovineone/32/117631_2.png) [@bovineone](https://discussions.flightaware.com/u/bovineone)\
**Post date:** [April 17, 2020, 9:28pm UTC](https://discussions.flightaware.com/t/authentication/61792/2 "2020-04-17T21:28:00Z")

</div>

The “Authorization” header should be base64 encoded result of “username:apikey”.

> **[Basic access authentication | Client side](https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side)**
>
> When the user agent wants to send authentication credentials to the server, it may use the Authorization header field.
> The Authorization header field is constructed as follows:
