lucee.Componentmodels.auth.BasicAuthUserService
Copyright since 2016 by Ortus Solutions, Corp www.ortussolutions.com --- This user service is based off a basic auth configuration of users in the application's security configuration. A single ColdBox application can have a main dictionary of users and modules can collaborate users as well.
Property Summary | ||||
---|---|---|---|---|
type | property | default | serializable | required |
any
|
populator
|
true
|
false
|
|
any
|
settings
|
true
|
false
|
|
any
|
wirebox
|
true
|
false
|
Constructor Summary | |
---|---|
init()
Constructor. |
Method Summary | |
---|---|
private any
|
getNewUserTemplate()
Create a new user template for basic auth. |
string
|
getPopulator()
|
string
|
getSettings()
|
array
|
getUsers()
Get an array of registered users with this service. |
string
|
getWirebox()
|
string
|
hashSecurely(string target)
Hash the incoming target according to our hashing algorithm and settings. |
boolean
|
isValidCredentials(any username, any password)
Verify if the incoming username and password are valid credentials in this user storage. |
User
|
new()
New User dispenser. |
any
|
onDIComplete()
|
User
|
retrieveUserById(any id)
Get a new user by id. |
User
|
retrieveUserByUsername(any username)
Get a user by username. |
any
|
setPopulator(any populator)
|
any
|
setSettings(any settings)
|
any
|
setWirebox(any wirebox)
|
Methods inherited from class lucee.Component |
---|
None |
Constructor Detail |
---|
Constructor
Property Detail |
---|
access
- publicrequired
- falsereturntype
- anyinject
- wirebox:populatorserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- coldbox:moduleSettings:cbsecurityserializable
- trueaccess
- publicrequired
- falsereturntype
- anyinject
- wireboxserializable
- trueMethod Detail |
---|
Create a new user template for basic auth
Get an array of registered users with this service
Hash the incoming target according to our hashing algorithm and settings
target
- The string target to hashVerify if the incoming username and password are valid credentials in this user storage
username
- The username to testpassword
- The password to testNew User dispenser
Get a new user by id
id
- The id to get the user withGet a user by username
username
- The username to get the user withpopulator
settings
wirebox