All Projects β†’ probot β†’ auth-routes

probot / auth-routes

Licence: ISC License
πŸ”€πŸ”’ Helpful authentication routes for Node.js GitHub integrations

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to auth-routes

scalafmt-probot
πŸ€–Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (+15.38%)
Mutual labels:  probot, github-integration
probot-issue-duplicate-detection
A probot plugin for automatic issue duplicate detection
Stars: ✭ 31 (+138.46%)
Mutual labels:  probot
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+7723.08%)
Mutual labels:  github-integration
commands
A Probot extension that adds slash commands to GitHub
Stars: ✭ 54 (+315.38%)
Mutual labels:  probot
dont-merge
Prevent merging of Pull Requests with a custom label selected on labels area.
Stars: ✭ 26 (+100%)
Mutual labels:  probot
prosebot
πŸ€–πŸ”Š Probot App to help you write better on GitHub.
Stars: ✭ 46 (+253.85%)
Mutual labels:  probot
probot-messages
Probot extension for communicating with repository maintainers
Stars: ✭ 13 (+0%)
Mutual labels:  probot
fyi
Map & Explore your organization's System Architecture
Stars: ✭ 28 (+115.38%)
Mutual labels:  probot
node
npm's fork of nodejs/node, for sending PRs to update deps/npm
Stars: ✭ 30 (+130.77%)
Mutual labels:  probot
linter-alex
πŸ“Sensitive, considerate writing before you merge your Pull Requests
Stars: ✭ 67 (+415.38%)
Mutual labels:  probot
github-integration-starter
Try out Hasura's GitHub Integration on Cloud Projects using the examples in this repo.
Stars: ✭ 19 (+46.15%)
Mutual labels:  github-integration
issuelabeler
A GitHub bot to label issues automatically based on title and body against list of defined labels. System status (https://status.verticalaxisbd.com/)
Stars: ✭ 23 (+76.92%)
Mutual labels:  probot
merge-me
A GitHub app that merges your pull requests once all required checks pass.
Stars: ✭ 19 (+46.15%)
Mutual labels:  probot
probot-ooo
πŸ™… Respond with an auto-responder when you are OOO
Stars: ✭ 36 (+176.92%)
Mutual labels:  probot
probot-config
A Probot extension to easily share configs between repositories.
Stars: ✭ 63 (+384.62%)
Mutual labels:  probot
serverless-gcf
An extension for running Probot on Google Cloud Functions
Stars: ✭ 15 (+15.38%)
Mutual labels:  probot
background-check
A GitHub App built with probot that peforms a "background check" to identify users who have been toxic in the past, and shares their toxic activity in the maintainer’s repo.
Stars: ✭ 27 (+107.69%)
Mutual labels:  probot
react-preview
a GitHub App built with probot that generates preview links for react based projects.
Stars: ✭ 14 (+7.69%)
Mutual labels:  probot
boring-cyborg
πŸ€– A Github bot to automatically label PRs, issues and perform all the boring operations that you don't want to do.
Stars: ✭ 66 (+407.69%)
Mutual labels:  probot
mattermost-plugin-github
GitHub plugin for Mattermost
Stars: ✭ 112 (+761.54%)
Mutual labels:  github-integration

GitHub Auth Routes

Helpful authentication routes for Node.js GitHub integrations

NPM Build Status Codecov

Install

$ npm install auth-routes

Usage

const { registerAuthRoutes } = require('auth-routes')

const app = express()
registerAuthRoutes(app, {
  client_id: process.env.GITHUB_CLIENT_ID,
  client_secret: process.env.GITHUB_CLIENT_SECRET
})

// Or pass some options:
registerAuthRoutes(app, {
  loginURL: '/log-me-in',
  callbackURL: '/call-me-back',
  client_id: process.env.GITHUB_CLIENT_ID,
  client_secret: process.env.GITHUB_CLIENT_SECRET
})

Use with Probot

module.exports = app => {
  // Access the Express server that Probot uses
  const expressApp = app.route()

  // Register the routes as normal
  registerAuthRoutes(expressApp, {
    client_id: process.env.GITHUB_CLIENT_ID,
    client_secret: process.env.GITHUB_CLIENT_SECRET
  })
}

Options

Name Description Required Default
client_id GitHub App's Client ID βœ“ -
client_secret GitHub App's Client Secret βœ“ -
loginURL Login path '/login'
callbackURL Authorization callback URL, for your GitHub App '/login/cb'
afterLogin Where users are redirected to after they've logged in '/'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].