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:
Raymond Feng 2014-05-16 13:46:58 -07:00
parent a071895723
commit 22e929e439
1 changed files with 2 additions and 13 deletions

View File

@ -26,22 +26,11 @@ var properties = {
realm: {type: String},
username: {type: String},
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},
emailVerified: Boolean,
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,
created: Date,
lastUpdated: Date