Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 928 Bytes

auth-validator.md

File metadata and controls

31 lines (23 loc) · 928 Bytes
description
The auth validator leverages authentication and role-permission-based authorization for you.

Auth Validator

ColdBox security ships with this validator that knows how to talk to the authentication service and validate authentication and authorization via permissions and roles. All you need to do is use the WireBox ID of AuthValidator@cbsecurity in your validator setting:

cbsecurity = {

    firewall : {
        validator = "AuthValidator@cbsecurity"
    }

}

{% hint style="info" %} AuthValidator is the default validator for ColdBox Security {% endhint %}

{% hint style="danger" %} The configured authentication service must adhere to our IAuthService interface and the User object must adhere to the IAuthUser interface. {% endhint %}

{% hint style="success" %} Remember that a validator can exist globally and on a per ColdBox Module level. {% endhint %}