🤖
Alphi
  • Welcome to Alphi
  • Projects
    • 📗Creating a project
    • 🔗Allowed Hosts
    • 👥Collaborators
  • Flow Builder
    • Overview
    • ⚡Methods
    • 🎛️Parameters
    • 🧱Nodes
    • 👟Running
    • 🚀Environments
  • Connections
    • Overview
    • 🔑Add an API Key
    • 🔓OAuth Connections
  • Authentication
    • Overview
    • 🟡Outseta
    • 🔵Memberstack
    • 🟠Firebase
  • Nodes
    • 🌐HTTP Request
    • 🛣️Logic
    • 🗜️Flatten
    • 🪣Filter Keys
    • 🔤Format Keys
    • 🏷️Rename Keys
    • 🔩Drill Down
    • ⬅️Get Values
    • 🪄Set Dataset
    • ✨Set Property
    • 🍪Set Cookie
    • 🔑Set Connection
    • #️⃣Encode JWT
    • 🔢Decode JWT
    • 🖼️Render
    • 📜Ethereum - Verify Message
  • Response Nodes
    • 👾JSON Response
    • 🎨HTML Response
    • 🔗HTTP Redirect
    • 🚫Error
Powered by GitBook
On this page
  • Including a token in a request to Alphi
  • Javascript Example
  1. Authentication

Overview

Securing flows with third-party authentication services

When it comes to building web applications with Alphi you will need an authentication/ membership service to:

  • Identify the user executing the flow

  • Limit feature access based on the users plan/ subscription

  • Allow users to create, read, update and delete records associated with their account

Utilising our authentication integrations, you can connect popular nocode membership services like Outseta and Memberstack in minutes.

Including a token in a request to Alphi

When running a flow with authentication enabled, you must include the authorisation token in the request.

-H "Authorization: Bearer eyJhbGci..."

Javascript Example

fetch('https://live.api-server.io/run/v1/YOUR_FLOW_ID', {
    headers: {
      'Authorization': 'Bearer ' + Outseta.getAccessToken()
      // 'Authorization': 'Bearer ' + $memberstackDom.getMemberCookie()
    }
  )
  .then((response) => response.json())
  .then((data) => console.log(data));
PreviousOAuth ConnectionsNextOutseta

Last updated 2 years ago

🟡Outseta
🔵Memberstack