probot/auth-routes

Name: auth-routes

Owner: Probot

Description: null

Created: 2018-04-04 18:29:24.0

Updated: 2018-04-05 21:38:49.0

Pushed: 2018-04-05 02:05:35.0

Homepage: null

Size: 3

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

auth-routes

Helpful authentication routes for Probot Apps

Usage
t authRoutes = require('probot-auth')

le.exports = robot => {
nst app = robot.route()
thRoutes(app)

 Or pass some options:
thRoutes(app, {
loginURL: '/log-me-in',
callbackURL: '/call-me-back'


You will need to set your app's CLIENT_ID and CLIENT_SECRET environment variables, or you can pass them manually in the options.

Options

| Name | Description | Default | | ——- | ———– | ——- | | 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 | '/' | | client_id | GitHub App's Client ID | process.env.CLIENT_ID | | client_secret | GitHub App's Client Secret | process.env.CLIENT_SECRET |


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.