feat: users create (wip)
This commit is contained in:
@@ -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
|
||||
// })
|
||||
}
|
||||
))
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user