Methods
createHashedUser
createHashedUser( username: string , hash: string ) : PromiseLike < string >
createHashedUser( username: string , hash: string , resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > > ) : MongoUserUtil
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:423
Parameters
username: string
hash: string
Returns PromiseLike < string >
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:428
Parameters
username: string
hash: string
resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > >
createUser
createUser( username: string , password: string ) : PromiseLike < string >
createUser( username: string , password: string , resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > > ) : MongoUserUtil
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:413
Parameters
username: string
password: string
Returns PromiseLike < string >
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:418
Parameters
username: string
password: string
resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > >
createUserRolesAndPermissions
createUserRolesAndPermissions( username: string , roles: string , permissions: string ) : PromiseLike < string >
createUserRolesAndPermissions( username: string , roles: string , permissions: string , resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > > ) : MongoUserUtil
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:433
Parameters
username: string
roles: string
permissions: string
Returns PromiseLike < string >
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:438
Parameters
username: string
roles: string
permissions: string
resultHandler: ( ( res: AsyncResult < string > ) => void ) | Handler < AsyncResult < string > >
Static create
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:403
Parameters
Defined in io.vertx/vertx-auth-mongo/target/npm/index.d.ts:408
Parameters
Legend
Static property
Static method
Utility to create users/roles/permissions. This is a helper class and not intended to be a full user management utility. While the standard authentication and authorization interfaces will require usually read only access to the database, in order to use this API a full read/write access must be granted.