Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bearer token auth #174

Merged
merged 2 commits into from
Dec 31, 2023
Merged

Implement bearer token auth #174

merged 2 commits into from
Dec 31, 2023

Conversation

Siegrift
Copy link
Collaborator

@Siegrift Siegrift commented Dec 20, 2023

Closes #22

Rationale

The Signed API configuration changes are inspired by the following idea:

{
  "endpoints": [
    {
      "urlPath": "/default",
    -> "authTokens": ["token"],
      "delaySeconds": 0
    },
    {
      "urlPath": "/delayed",
   -> "authTokens": null,
      "delaySeconds": 15
    }
  ],
  "allowedAirnodes": [
    {
      "address": "0xbF3137b0a7574563a23a8fC8badC6537F98197CC",
   -> "authTokens": ["airnode-token-1", "airnode-token-2"]
    }
  ],
  "stage": "local",
  "version": "0.1.0"
}

Each endpoint can have Bearer token authentication. Similarly for the endpoint to push the data from Airnode feed. Read the configuration changes (READMEs) and the changes in the example configuration files.

Related

  • Readme config changes
  • Update spec (high level reasoning why we use auth)

@Siegrift Siegrift self-assigned this Dec 20, 2023
@Siegrift Siegrift changed the title WIP: Implement bearer token auth Implement bearer token auth Dec 20, 2023
@Siegrift Siegrift requested a review from andreogle December 20, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement API authentication
2 participants