Git Product home page Git Product logo

typeform-oauth-flow-sandbox's Introduction

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.

typeform-oauth-flow-sandbox's People

Contributors

anabellaspinelli avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.