# Basic To Bearer

## Overview

Basic To Bearer is an authorization flow where Basic credentials are traded for an access token. In this flow, the Aisera platform makes an API request using the Authorization header containing the username and password. This request will return an Access Token that can be used to access your third-party application.

## Fields

The **BasicToBearer** authentication type includes the following fields:

<table><thead><tr><th width="210.79998779296875">Field</th><th>Description</th></tr></thead><tbody><tr><td>Username </td><td>The username of the account being used to authenticate with the third-party application.</td></tr><tr><td>Password </td><td>The password of the account being used to authenticate with the third-party application.</td></tr><tr><td>Access Token URL</td><td>The URL where the Aisera platform will exchange the basic credentials for an access token.</td></tr><tr><td>Access Token Extraction Key</td><td>This defines which key will contain the <code>access_token</code> in the returned JSON object. Defaults to <code>access_token</code>.</td></tr><tr><td>Expires In Extraction Key</td><td>This defines which key will contain the  <code>expires_in</code> value for the access token in the returned JSON object. Defaults to <code>expires_in</code>.</td></tr><tr><td>HTTP Operation </td><td>The HTTP request method to be used for the authorization request. Defaults to <code>POST</code>.</td></tr><tr><td>Headers</td><td>Custom headers in JSON format: <code>{"apiKey": "api_key_value"}</code></td></tr><tr><td>Use Raw Token</td><td>Enabling this removes the <code>Bearer</code> prefix from the Authorization header.</td></tr></tbody></table>

<div align="left"><figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2F2aAQ4BsOJLXE628V9uat%2Fimage.png?alt=media&#x26;token=6840ff11-a20d-4ae3-9625-a45a70bf5585" alt="" width="492"><figcaption></figcaption></figure></div>
