models.delegates

Class JwtSubject

lucee.Component
    extended by models.delegates.JwtSubject

Copyright since 2016 by Ortus Solutions, Corp www.ortussolutions.com --- This delegate allows for objects to get JWT custom claims and Custom Scopes This delegate expects the following functions to be exposed in the $parent - getPermissions() - getRoles()

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    struct getJWTCustomClaims(struct payload)
         A struct of custom claims to add to the JWT token.
    array getJWTScopes()
         This function returns an array of all the scopes that should be attached to the JWT token that will be used for authorization.
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    getJWTCustomClaims

    public struct getJWTCustomClaims(struct payload)

    A struct of custom claims to add to the JWT token By default we add the $parent's roles

    Parameters:
    payload

    getJWTScopes

    public array getJWTScopes()

    This function returns an array of all the scopes that should be attached to the JWT token that will be used for authorization. By default we add the $parent's permissions