mirror of https://github.com/requarks/wiki
parent
9e2f1caaf7
commit
fd8bf4dbff
@ -0,0 +1,8 @@
|
|||||||
|
key: auth0
|
||||||
|
title: Auth0
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
domain: String
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,13 @@
|
|||||||
|
key: azure
|
||||||
|
title: Azure Active Directory
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
||||||
|
resource:
|
||||||
|
type: String,
|
||||||
|
default: '00000002-0000-0000-c000-000000000000'
|
||||||
|
tenant:
|
||||||
|
type: String,
|
||||||
|
default: YOUR_TENANT.onmicrosoft.com
|
@ -0,0 +1,24 @@
|
|||||||
|
/* global WIKI */
|
||||||
|
|
||||||
|
// ------------------------------------
|
||||||
|
// CAS Account
|
||||||
|
// ------------------------------------
|
||||||
|
|
||||||
|
const CASStrategy = require('passport-cas').Strategy
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
init (passport, conf) {
|
||||||
|
passport.use('cas',
|
||||||
|
new CASStrategy({
|
||||||
|
ssoBaseURL: conf.ssoBaseURL,
|
||||||
|
serverBaseURL: conf.serverBaseURL
|
||||||
|
}, (profile, cb) => {
|
||||||
|
WIKI.db.users.processProfile(profile).then((user) => {
|
||||||
|
return cb(null, user) || true
|
||||||
|
}).catch((err) => {
|
||||||
|
return cb(err, null) || true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
key: cas
|
||||||
|
title: CAS
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
ssoBaseURL: String
|
||||||
|
serverBaseURL: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: discord
|
||||||
|
title: Discord
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: dropbox
|
||||||
|
title: Dropbox
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: facebook
|
||||||
|
title: Facebook
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: github
|
||||||
|
title: GitHub
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: google
|
||||||
|
title: Google
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,22 @@
|
|||||||
|
key: ldap
|
||||||
|
title: LDAP / Active Directory
|
||||||
|
author: requarks.io
|
||||||
|
useForm: true
|
||||||
|
props:
|
||||||
|
url:
|
||||||
|
type: String
|
||||||
|
default: 'ldap://serverhost:389'
|
||||||
|
bindDn:
|
||||||
|
type: String
|
||||||
|
default: cn='root'
|
||||||
|
bindCredentials: String
|
||||||
|
searchBase:
|
||||||
|
type: String
|
||||||
|
default: 'o=users,o=example.com'
|
||||||
|
searchFilter:
|
||||||
|
type: String
|
||||||
|
default: '(uid={{username}})'
|
||||||
|
tlsEnabled:
|
||||||
|
type: Boolean
|
||||||
|
default: false
|
||||||
|
tlsCertPath: String
|
@ -0,0 +1,5 @@
|
|||||||
|
key: local
|
||||||
|
title: Local
|
||||||
|
author: requarks.io
|
||||||
|
useForm: true
|
||||||
|
props: {}
|
@ -0,0 +1,7 @@
|
|||||||
|
key: microsoft
|
||||||
|
title: Microsoft Account
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,9 @@
|
|||||||
|
key: oauth2
|
||||||
|
title: OAuth2
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
||||||
|
authorizationURL: String
|
||||||
|
tokenURL: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: slack
|
||||||
|
title: Slack
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
@ -0,0 +1,7 @@
|
|||||||
|
key: twitch
|
||||||
|
title: Twitch
|
||||||
|
author: requarks.io
|
||||||
|
useForm: false
|
||||||
|
props:
|
||||||
|
clientId: String
|
||||||
|
clientSecret: String
|
Loading…
Reference in new issue