feat: users create (wip)

This commit is contained in:
Nick
2019-04-28 20:25:19 -04:00
parent 849d4f4774
commit 4f23984ac6
10 changed files with 136 additions and 37 deletions

View File

@@ -17,14 +17,15 @@ module.exports = {
resource: conf.resource,
tenant: conf.tenant
}, (accessToken, refreshToken, params, profile, cb) => {
console.info(params, profile)
let waadProfile = jwt.decode(params.id_token)
waadProfile.id = waadProfile.oid
waadProfile.provider = 'azure'
WIKI.models.users.processProfile(waadProfile).then((user) => {
return cb(null, user) || true
}).catch((err) => {
return cb(err, null) || true
})
// WIKI.models.users.processProfile(waadProfile).then((user) => {
// return cb(null, user) || true
// }).catch((err) => {
// return cb(err, null) || true
// })
}
))
}

View File

@@ -5,6 +5,7 @@ author: requarks.io
logo: https://static.requarks.io/logo/azure.svg
color: blue darken-3
website: https://azure.microsoft.com/services/active-directory/
isAvailable: false
useForm: false
props:
clientId: String