Dealing with Authorizations (simple, oAuth, etc)

Introduction

API Fortress can handle any authorization scheme. Below we provide some guides on simple ways to work with the most common authorization methods. If it requires usage of a long lasting token, see here for more information.

Simple Authorization

From within the composer the process is simplified in the mini wizard.

  1. Enter the visual composer
  2. Click Add Component
  3. Click GET
  4. Enter details and then click Add Authentication
  5. Choose Basic
  6. Enter the Username and Password
  7. The header information is automatically encoded and entered for you!

basic auth

 

Simple Authorization from the HTTP Client

Using the HTTP composer requires encoding the Username and Password yourself.

  1. Click on Tools > HTTP Client
  2. Click on Tools > Gadgets
  3. Choose base64-encode
  4. Type in the username and password like this with the semicolon “username:password”
  5. Click encode
  6. Copy the generated code (our example is VXNlcm5hbWU6UGFzc3dvcmQ=)
  7. Now use that generated code in your call. Specifically as a Header, and use the word “Basic” under key, and the generated code (VXNlcm5hbWU6UGFzc3dvcmQ=) for value.

http

That’s it! The call should work now. If not feel free to send us a message at support@apifortress.com!