Merge branch 'feature/global-user-management' of https://github.com/Budibase/budibase into feature/global-user-management
This commit is contained in:
commit
6cd43f545a
|
@ -0,0 +1 @@
|
|||
packages/server/builder/**/*.js
|
|
@ -4,7 +4,7 @@ const JwtStrategy = require("passport-jwt").Strategy
|
|||
// const GoogleStrategy = require("passport-google-oauth").Strategy
|
||||
const CouchDB = require("./db")
|
||||
const { StaticDatabases } = require("./db/utils")
|
||||
const { jwt, local, google, authenticated } = require("./middleware")
|
||||
const { jwt, local, authenticated } = require("./middleware")
|
||||
const { Cookies, UserStatus } = require("./constants")
|
||||
const { hash, compare } = require("./hashing")
|
||||
const {
|
||||
|
|
|
@ -6,7 +6,7 @@ exports.options = {
|
|||
callbackURL: env.GOOGLE_AUTH_CALLBACK_URL,
|
||||
}
|
||||
|
||||
exports.authenticate = async function(token, tokenSecret, profile, done) {
|
||||
// retrieve user ...
|
||||
// exports.authenticate = async function(token, tokenSecret, profile, done) {
|
||||
// // retrieve user ...
|
||||
// fetchUser().then(user => done(null, user))
|
||||
}
|
||||
// }
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
const CouchDB = require("../../db")
|
||||
const { StaticDatabases } = require("../../db/utils")
|
||||
const fetch = require("node-fetch")
|
||||
const env = require("../../environment")
|
||||
const { getDeployedApps } = require("../../utilities/workerRequests")
|
||||
|
||||
const PROD_HOSTING_URL = "app.budi.live"
|
||||
|
|
|
@ -32,10 +32,10 @@ exports.logout = async ctx => {
|
|||
ctx.body = { success: true }
|
||||
}
|
||||
|
||||
exports.googleAuth = async (ctx, next) => {
|
||||
exports.googleAuth = async () => {
|
||||
// return passport.authenticate("google")
|
||||
}
|
||||
|
||||
exports.googleAuth = async (ctx, next) => {
|
||||
exports.googleAuth = async () => {
|
||||
// return passport.authenticate("google")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue