contentbox.models.security.ISecurityService
ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- This is the ContentBox Security Service needed for security to be implemented in ContentBox
Method Summary | |
---|---|
struct
|
authenticate(any username, any password)
Authenticate an author via ContentBox credentials. |
boolean
|
authorizeContent(any content, any password)
Check to authorize a user to view a content entry or page. |
Author
|
getAuthorSession()
Get an author from session, or returns a new empty author entity. |
boolean
|
isContentViewable(any content)
Checks Whether a content entry or page is protected and user has credentials for it. |
ISecurityService
|
logout()
Delete author session. |
struct
|
resetUserPassword(any token, Author author, any password)
Resets a user's password. |
struct
|
sendPasswordReminder(Author author, [boolean adminIssued], [Author issuer])
Send password reminder for an author. |
ISecurityService
|
setAuthorSession(Author author)
Set a new author in session. |
boolean
|
userValidator(struct rule, [any controller])
User validator via security interceptor. |
Method Detail |
---|
Authenticate an author via ContentBox credentials. This method returns a structure containing an indicator if the authentication was valid (`isAuthenticated` and The `author` object which it represents.
username
- The username to validatepassword
- The password to validateCheck to authorize a user to view a content entry or page
content
password
Get an author from session, or returns a new empty author entity
Checks Whether a content entry or page is protected and user has credentials for it
content
Delete author session
Resets a user's password.
token
author
password
Send password reminder for an author
author
adminIssued
issuer
Set a new author in session
author
User validator via security interceptor
rule
controller