Class: ListenerJwtAuthHandler
Isolated
Defines the JWT auth handler for listener authentication.
Constructor
Initializes the http:ListenerJwtAuthHandler
object.
init (JwtValidatorConfig config)
- config JwtValidatorConfig
The
http:JwtValidatorConfig
instance
Methods
authenticate | Authenticates with the relevant authentication requirements. |
authorize | Authorizes with the relevant authorization requirements. |
authenticate
function authenticate(Request | Headers | string data) returns Payload | Unauthorized
Isolated Function
Authenticates with the relevant authentication requirements.
Parameters
Return Type
(Payload | Unauthorized)The jwt:Payload
instance or else Unauthorized
type in case of an error
authorize
Isolated Function
Authorizes with the relevant authorization requirements.
Parameters
- jwtPayload Payload
The jwt:Payload
instance which is received from authentication results