Skip to content

Latest commit

 

History

History

node-passport-oauth

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

OAuth2.0 and Passport.js Miro App Example

This app shows Miro's OAuth2.0 flow using the passport library to authenticate users.

👨🏻‍💻 App Demo

passport-oauth-demo.mp4

📒 Table of Contents

⚙️ Included Features

🛠️ Tools and Technologies

✅ Prerequisites

🏃🏽‍♂️ Run the app locally

  1. Run npm install to install dependencies.

  2. Go to index.mjs lines 33-34 and add in your apps clientID and clientSecret variables. Save the file with the updated variables.

  3. Open the app manifest editor by clicking Edit in Manifest.
    In the app manifest editor, copy and paste the following yaml code:

# See https://developers.miro.com/docs/app-manifest on how to use this
appName: Node Passport
redirectUris:
  - http://localhost:4000/auth/miro/callback
scopes:
  - boards:read
  1. Run npm start and your browser should automatically take you to the Miro OAuth page. Once you install the app on a developer team, you should see the API response in your browser. Great job!

🗂️ Folder structure

.
├── package.json <-- App dependencies that are installed for the project.
└── index.mjs <-- The main Node.js script to run the PassportJS auth flow.
└── app-manifest.yaml <-- Yaml code to configure your Miro App. This is used in App Settings -> Manifest.
└── node_modules <-- Node.js modules that are installed based on dependencies.

🫱🏻‍🫲🏽 Contributing

If you want to contribute to this example, or any other Miro Open Source project, please review Miro's contributing guide.

🪪 License

MIT License.