ApiSkills

Authentication · 6 min

Basic Authentication

The simplest auth: a username and password, base64-encoded into one header.

HTTP Basic auth sends your credentials in a single header: Authorization: Basic base64(username:password). Here the username is your App ID and the password is your App Secret.

curl https://api.ifsjaipur.cloud/playground/auth/basic -u "APP_ID:APP_SECRET"

The -u flag tells curl to build the Basic header for you. The server decodes it, looks up your app by App ID, and verifies the secret against the stored hash.

  • base64 is NOT encryption — it is trivially reversible. Basic auth is only safe over HTTPS.
  • A wrong secret returns 401 with a clear reason; try it to see the failure.

Tip · In n8n: create a "Basic Auth" credential, set username = App ID, password = App Secret, and select it on the HTTP Request node.