Skip to main content

About NGNair OAuth

Overview

NGNair OAuth enables secure integration between your application and NGNair's features. Through OAuth, your application can:

  • Connect to NGNair's features on behalf of users and groups
  • Access user information and permissions
  • Process actions and transactions seamlessly
  • Integrate NGNair's functionality into your application

General Implementation Steps

  1. Create an OAuth Client

    • Register your application to get client credentials
    • Configure redirect URIs and required permissions
  2. Create Authorization Link

    • Generate an authorization URL with required scopes
    • Redirect users to this URL for consent
  3. Handle Authorization Callback

    • Set up a server endpoint to receive the authorization code
    • Exchange the code for access and refresh tokens
    • Securely store the tokens for future use
  4. Make Authenticated Requests

    • Include the access token in request headers
    • Format: token: <access_token>
    • Use the token for all API requests requiring authentication

Authentication

All API requests must include your authentication token in the request headers:

  • token: Your authentication token

Example:

-H 'token: tok_123456789'