Skip to content

Authentication Overview

Islamic Open Finance™ provides multiple authentication methods to secure your API access.

Authentication Methods

MethodUse CaseSecurity Level
API KeysServer-to-serverHigh
OAuth 2.0User delegationHigh
JWT TokensSession-basedMedium

Quick Start

API Key Authentication

The simplest way to authenticate:

bash
curl https://api.islamicopenfinance.com/v1/contracts \
  -H "Authorization: Bearer iof_sk_live_abc123..."

OAuth 2.0

For user-delegated access:

bash
curl https://api.islamicopenfinance.com/oauth2/token \
  -d "grant_type=authorization_code" \
  -d "code=auth_code_here" \
  -d "client_id=your_client_id" \
  -d "client_secret=your_client_secret"

Security Best Practices

  1. Never expose secrets in client-side code
  2. Rotate API keys regularly
  3. Use environment variables for credentials
  4. Implement proper key scoping
  5. Monitor API usage for anomalies

Next Steps

Licensed under the Apache License 2.0