Basic authorization inserter

[io/http/utils/Basic authorization inserter]


Inserts an Basic Authorization header into a HTTP request header.

Example: ``` 1. { "content-type": "application/json; charset=utf-8" }` set to "headers" 2. "John01"@0 received via `user id` 3. "P@ssw0rd"@0 received via `password` 4. { "content-type": "application/json", "Authorization": "Basic "Zm9v" }@0 sent via `headers` ```


Keywords: http, authentication, authorization

Input ports

  • headers: {string: string}

    Recieves request headers. It is used to describe a resource, or the behavior of the server or the client.

Example: ``` { "content-type": "application/json; charset=utf-8" } ```

  • user id: string

    Recieves user id. Example:

    "John01"<br>
    ```<br>
    
  • password: string

    Recieves user password. Example:

    "P@ssw0rd"<br>
    ```<br>

Output ports

  • headers: {string: string}

    Sends the received request headers with the authorization header added to it.

Example: ``` { "content-type": "application/json", "Authorization": "Basic "Zm9v" } ```

Last updated