@sourceloop/core / Exports / CasbinSecureSequence
Class: CasbinSecureSequence¶
Implements¶
SequenceHandler
Table of contents¶
Constructors¶
Properties¶
- authenticateClientRequest
- authenticateRequest
- casbinResModifierFn
- checkAuthorisation
- expressMiddlewares
- findRoute
- helmetAction
- helmetConfig
- i18n
- invoke
- invokeMiddleware
- logger
- parseParams
- rateLimitAction
- rateLimitConfig
- reject
- send
Methods¶
Constructors¶
constructor¶
• new CasbinSecureSequence(findRoute
, parseParams
, invoke
, send
, reject
, logger
, authenticateRequest
, authenticateClientRequest
, checkAuthorisation
, casbinResModifierFn
, helmetAction
, rateLimitAction
, i18n
, rateLimitConfig?
, helmetConfig?
)
Parameters¶
Name | Type |
---|---|
findRoute |
FindRoute |
parseParams |
ParseParams |
invoke |
InvokeMethod |
send |
Send |
reject |
Reject |
logger |
ILogger |
authenticateRequest |
AuthenticateFn <IAuthUserWithPermissions <string , string , string >> |
authenticateClientRequest |
AuthenticateFn <IAuthClient > |
checkAuthorisation |
CasbinAuthorizeFn |
casbinResModifierFn |
CasbinResourceModifierFn |
helmetAction |
HelmetAction |
rateLimitAction |
RateLimitAction |
i18n |
i18nAPI |
rateLimitConfig? |
object |
helmetConfig? |
object |
Defined in¶
packages/core/src/casbin-secure-sequence.ts:60
Properties¶
authenticateClientRequest¶
• Protected
authenticateClientRequest: AuthenticateFn
<IAuthClient
>
Defined in¶
packages/core/src/casbin-secure-sequence.ts:73
authenticateRequest¶
• Protected
authenticateRequest: AuthenticateFn
<IAuthUserWithPermissions
<string
, string
, string
>>
Defined in¶
packages/core/src/casbin-secure-sequence.ts:71
casbinResModifierFn¶
• Protected
casbinResModifierFn: CasbinResourceModifierFn
Defined in¶
packages/core/src/casbin-secure-sequence.ts:77
checkAuthorisation¶
• Protected
checkAuthorisation: CasbinAuthorizeFn
Defined in¶
packages/core/src/casbin-secure-sequence.ts:75
expressMiddlewares¶
• Protected
expressMiddlewares: ExpressRequestHandler
[] = []
Defined in¶
packages/core/src/casbin-secure-sequence.ts:58
findRoute¶
• Protected
findRoute: FindRoute
Defined in¶
packages/core/src/casbin-secure-sequence.ts:62
helmetAction¶
• Protected
helmetAction: HelmetAction
Defined in¶
packages/core/src/casbin-secure-sequence.ts:79
helmetConfig¶
• Private
Optional
Readonly
helmetConfig: object
Defined in¶
packages/core/src/casbin-secure-sequence.ts:87
i18n¶
• Protected
i18n: i18nAPI
Defined in¶
packages/core/src/casbin-secure-sequence.ts:83
invoke¶
• Protected
invoke: InvokeMethod
Defined in¶
packages/core/src/casbin-secure-sequence.ts:66
invokeMiddleware¶
• Protected
invokeMiddleware: InvokeMiddleware
Optional invoker for registered middleware in a chain. To be injected via SequenceActions.INVOKE_MIDDLEWARE.
Defined in¶
packages/core/src/casbin-secure-sequence.ts:56
logger¶
• logger: ILogger
Defined in¶
packages/core/src/casbin-secure-sequence.ts:69
parseParams¶
• Protected
parseParams: ParseParams
Defined in¶
packages/core/src/casbin-secure-sequence.ts:64
rateLimitAction¶
• Protected
rateLimitAction: RateLimitAction
Defined in¶
packages/core/src/casbin-secure-sequence.ts:81
rateLimitConfig¶
• Private
Optional
Readonly
rateLimitConfig: object
Defined in¶
packages/core/src/casbin-secure-sequence.ts:85
reject¶
• reject: Reject
Defined in¶
packages/core/src/casbin-secure-sequence.ts:68
send¶
• send: Send
Defined in¶
packages/core/src/casbin-secure-sequence.ts:67
Methods¶
_handleErrorMessage¶
▸ Private
_handleErrorMessage(error
): void
Parameters¶
Name | Type |
---|---|
error |
Error |
Returns¶
void
Defined in¶
packages/core/src/casbin-secure-sequence.ts:164
_rejectErrors¶
▸ Private
_rejectErrors(err
): Error
Parameters¶
Name | Type |
---|---|
err |
any |
Returns¶
Error
Defined in¶
packages/core/src/casbin-secure-sequence.ts:184
handle¶
▸ handle(context
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
context |
RequestContext |
Returns¶
Promise
<void
>
Implementation of¶
SequenceHandler.handle