Fix credentials/challenges types
Associated identities and credentials are now captured by models in loopback-component-passport. These two properties will be removed in 2.x.
This commit is contained in:
parent
a071895723
commit
22e929e439
|
@ -26,22 +26,11 @@ var properties = {
|
||||||
realm: {type: String},
|
realm: {type: String},
|
||||||
username: {type: String},
|
username: {type: String},
|
||||||
password: {type: String, required: true},
|
password: {type: String, required: true},
|
||||||
|
credentials: Object, // deprecated, to be removed in 2.x
|
||||||
|
challenges: Object, // deprecated, to be removed in 2.x
|
||||||
email: {type: String, required: true},
|
email: {type: String, required: true},
|
||||||
emailVerified: Boolean,
|
emailVerified: Boolean,
|
||||||
verificationToken: String,
|
verificationToken: String,
|
||||||
|
|
||||||
credentials: [
|
|
||||||
'UserCredential' // User credentials, private or public, such as private/public keys, Kerberos tickets, oAuth tokens, facebook, google, github ids
|
|
||||||
],
|
|
||||||
challenges: [
|
|
||||||
'Challenge' // Security questions/answers
|
|
||||||
],
|
|
||||||
// https://en.wikipedia.org/wiki/Multi-factor_authentication
|
|
||||||
/*
|
|
||||||
factors: [
|
|
||||||
'AuthenticationFactor'
|
|
||||||
],
|
|
||||||
*/
|
|
||||||
status: String,
|
status: String,
|
||||||
created: Date,
|
created: Date,
|
||||||
lastUpdated: Date
|
lastUpdated: Date
|
||||||
|
|
Loading…
Reference in New Issue