Skip to content

A simple app to test the OAuth flow in Typeform and the different scopes provided.

Notifications You must be signed in to change notification settings

anabellaspinelli/typeform-oauth-flow-sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typeform OAuth Flow Sandbox

A simple app to test the OAuth flow in Typeform and the different scopes provided.

You'll get to choose what scopes (permissions) you want to use to login with Typeform and then try them out.

Installation

  1. Clone the repo
  2. Run yarn install (or npm install) inside the repo directory
  3. Copy the .env.dist file to a .env file
  4. Create an application in Typeform
    • Make sure you set up the redirect URI to http://localhost:9031/auth/typeform/redirect.
    • You can replace localhost:9031 with wherever you're running the app, but make sure the last part of the route is correct.
  5. Add the CLIENT_ID and CLIENT_SECRET you got from Typeform on the previous step
  6. Run yarn start (or npm start) to start the app
  7. Go to http://localhost:9031 to begin using it

Optional settings

These are optional values that can be added to the .env file

Redirect URL

You can set up a REDIRECT_URI here, otherwise it will default to http://localhost:9031/auth/typeform/redirect. Only change it if you also changed it in step 4.

Authorizartion and Token URLs

AUTHORIZATION_URL and TOKEN_URL are there to use a local instance of the auth api. If they're not provided, they default to production.

Port

PORT will be picked up by the app instead of 9301.

This project uses PassportJS and a custom passport-typeform strategy to connect via OAuth.

About

A simple app to test the OAuth flow in Typeform and the different scopes provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published