For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delegates

Delegate yourself!

CBSecurity comes bundled with the following delegate objects that you can use in your user objects and provide them with security capabilities.

Delegate
Description

Auth@cbsecurity

This delegate enables your application objects to deal with authentication features via delegation.

Authorizable@cbsecurity

This delegate adds authorization capabilities to your objects

JwtSubject@cbsecurity

This delegate adds JWT Subject methods to a target

Auth@cbsecurity

This delegate enables your application objects to deal with authentication features via delegation.

  • jwtAuth()

  • cbSecure()

  • auth()

component name="User" delegates="auth@cbSecurity"{

}

Authorizable@cbsecurity

This delegate adds authorization capabilities to your objects.

  • hasPermission()

  • hasRole()

  • isLoggedIn()

  • guest()

  • hasAll()

  • hasNone()

  • sameUser()

JwtSubject@cbsecurity

This delegate adds JWT Subject methods to a target.

  • getJWTCustomClaims()

  • getJWTScopes()

Last updated

Was this helpful?