Basic Auth
To get access to Basic Authentication, construct an Authorization header:
  • Combine your username and password into a string with the following form:
  • This string literal is encoded with Base64.
  • The encoded string follows the authorization method and a space.
For example, if
  • Username: "Aladdin"
  • Password: "open sesame"
  • Space: "Basic"
Then the header looks like this:
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==