website logo
⌘K
GETTING STARTED
Getting started with Pathfix
Introduction
OAuth Connect Page
Custom Redirect Domain
Monitoring Activity
Workspace
Extensions
Security
Notifications
Event Callback
Scopes
Provider reference
Access tokens
SDK's
BUBBLE.IO INTEGRATION
Bubble.io Documentation
ADALO INTEGRATION
Adalo Documentation
Adalo User Authorization
Adalo API Call
DEVELOPER CENTER
Developer center
Pathfix Consent Screen (preview)
Module dependencies
Step-by-Step
General
JavaScript
PROVIDER SETUP DOCS
Integration Setup Docs
Identity Auth
Integrating with Airtable
Integrating with Box
Integrating with Hubspot
Integrating with GitHub
Integrating with Google Tasks
Integrating with Instagram Graph API
Integrating with LinkedIn
Integrating with Pipedrive
Integrating with Quickbooks
Integrating with Stripe
Integrating with Stripe-Server
Integrating with Slack
Integrating with TikTok
Integrating with Typeform
Integrating with WooCommerce
Integrating with Xero
Integrating with Zoom
Docs powered by archbee 
12min

Methods

  • $pinc.oauth.authorized()
  • $pinc.oauth.authorizedList()
  • $pinc.oauth.processCommand()
  • $pinc.oauth.bind()
  • $pinc.oauth.client.connections()
  • $pinc.oauth.client.display()
  • $pinc.oauth.revoke()

authorized(provider, [userId], callback)

Allows you to query whether the user has previously authorized an Integration. User this interface when you wish to query the authorization status for a single provider.

arguments

Argument

Description

provider

Internal provider name. See Provider reference

userId

optional: Defaults to the data-user-id attribute in the script tag

callback

JavaScript callback.

Example

JS
|

authorizedList(userId, callback)

Gives you a list of providers that the user has authorized

Example

JS
|

processCommand(json_params)

Inititates the OAuth authorization process for the given provider. Ensure that this method is called synchronously on user interaction (onclick etc.). An asynchronous call to this function will block any authorizations that work with popups.

Param

Description

provider

Internal provider name. See Provider reference

user_id

optional: Defaults to the data-user-id attribute in the script tag

Example

JS
|

bind(div)

Pass the div element for scenarios where the div is dynamically added to the page using JavaScript of shadow DOM.

JS
|

revoke(provider,userId)

Invokes the token revocation for the current user. If the provider does no offer API based revocation then the tokens are deleted from the Pathfix databases/caches.

Example

JS
|
Updated 19 Nov 2020
Did this page help you?
Yes
No
UP NEXT
$pinc.auth
Docs powered by archbee 
TABLE OF CONTENTS
authorized(provider, [userId], callback)
authorizedList(userId, callback)
processCommand(json_params)
bind(div)
revoke(provider,userId)