LogoLogo
Home
  • Verb Documentation
  • Release Notes
  • Environment Settings
    • Authentication
      • Authentication Endpoint
  • Data Sources
    • Ingestion Methods
    • Table Sync Intervals
    • Data Source Integrations
      • Network Permissions
      • Microsoft SQL Server
      • PostgreSQL
      • MongoDB
      • Snowflake
      • Elasticsearch
      • DynamoDB
      • Google BigQuery
      • Firebase Cloud Firestore
      • Supabase
      • Cloud Files
      • Flat Files
    • Data Synchronization
      • Synchronization Methods
        • Full Synchronization
        • Incremental Synchronization
        • Change Tracking
        • Change Data Capture
      • Synchronization Intervals
      • Synchronization Status
        • Pausing and Resuming
      • Synchronization History
      • Schema Changes
      • Row Filtering
      • Schemaless & NoSQL
      • Managing Connections
      • Troubleshooting
  • Models
    • What is a Model
      • Elements of a Model
      • Model Management
    • Building a Model
      • Add/Remove Data
      • Relationships
      • Row-Level Security
      • Transformations
    • Advanced Model Information
      • Database Keys
      • Unstructured Data
      • Publishing Updates
      • Troubleshooting
      • Automatic Modeling
  • Data Transformations
    • What is a Transformation
      • Elements of a Transformation
      • Transformation Management
    • Building Transformations
      • Creating Transformations
      • Configure Transformation Steps
      • Transformation Steps
        • Calculator
        • Manipulate Text
        • Map Values
        • Remove Duplicates
        • Date Operation
        • Select Columns
        • Change Type
        • Group Data
        • Filter Data
        • Join Data
        • Append Rows
        • Pivot Data
        • Rank Data
        • Window Data
      • Complete and Publish
  • Collections
    • What is a Collection
      • Elements of a Collection
    • Building Collections
    • API Collections
      • Building API Collections
        • Connect Data Sources
        • Data Model
        • Select Data
        • Authentication and Security
        • Data Access API Keys
        • Data Access API Documentation
      • API Collection Versions
    • Advanced Collection Options
      • Time Zones
      • Currency Symbols
  • Tiles
    • What is a Tile
      • Elements of a Tile
    • Tile Management
      • Tile Data
    • Tile Actions
    • Custom Date Formats
    • Currency Conversion
  • Design Themes
    • What is a Design Theme
    • General Theme Settings
    • Data Visualization Settings
  • Account Settings
    • Integrations
      • Slack
  • Legal
    • Terms of Use
    • Privacy Policy
    • Subscription Agreement Terms
    • Subscription Agreement
    • Data Processing Addendum
Powered by GitBook
On this page

Was this helpful?

  1. Environment Settings
  2. Authentication

Authentication Endpoint

Complete instruction for the Visual and API Collections Authentication Option

The Auth Endpoint is configured as a callback to your API. After a user is authenticated by your application and the Verb javascript is rendered and token information is supplied, this is the endpoint Verb will call to verify the user’s legitimate and retrieve any user-specific data used for data filtering.

You can configure the auth endpoint’s properties with parameters passed in from the javascript:

  • Http Method

    • The method Verb will use to call the endpoint.

    • i.e. GET, POST, PUT, etc.

  • Endpoint

    • The URL Verb will call on every authentication attempt.

    • i.e. https://www.myapp.com/api/user, https://{{subdomain}}.myapp.com/auth?uid={{userID}}

  • Headers

    • Any headers required by the auth endpoint.

    • i.e. “Authentication Bearer {{bearerToken}}”

  • Body

    • The body to be sent with the request (for POST, PUT, etc HTTP methods).

    • This can be formatted as raw JSON/XML or as Form Data (optionally URL encoded).

Example 1 - GET with Bearer token passed in header

HTTP Method

GET

Endpoint

http://www.myapp.com/api/user

Headers

Authentication: Bearer {{bearerToken}} Accept: application/json

Embedding Code

<script> window.verbAsyncInit = function() { Verb.init({ apiKey : "REPLACE_WITH_API_KEY", version : "v1.0", authParams : { "bearerToken": "eyJraWQiOiJNt...aHBwVDdsZyI6IlJ" }, }); }; </script>

Response

{ "userID": "4a4ab95d-3bf4-4766-a6a6-f94b00d36d3c", "role": "Manager", "organizationID": "3c9977fb-b58c-4281-a9c7-fe58eb2c95ff" }

Example 2 - POST with dynamic URL, Bearer & API key passed in header, JSON body

HTTP Method

POST

Endpoint

http://{{subdomain}}.myapp.com/api/user

Headers

Authentication: Bearer {{bearerToken}} X-Api-Key: 99ffddee-5f12-4b2d-bf35-a75bf9160715 Content-Type: application/json

Accept: application/json

Body

{

"userID": "{{userID}}"

}

Embedding Code

<script> window.verbAsyncInit = function() { Verb.init({ apiKey : "REPLACE_WITH_API_KEY", version : "v1.0", authParams : { "bearerToken": "eyJraWQiOiJNt...aHBwVDdsZyI6IlJ", "subdomain": "client-x", "userID": "c8d23505-dee1-4eef-b03a-989282e924e1" }, }); }; </script>

Response

{ "userID": "4a4ab95d-3bf4-4766-a6a6-f94b00d36d3c", "role": "Manager", "organizationID": "3c9977fb-b58c-4281-a9c7-fe58eb2c95ff" }

PreviousAuthenticationNextIngestion Methods

Last updated 3 years ago

Was this helpful?