Package com.slack.api.bolt.middleware
Class MiddlewareOps
java.lang.Object
com.slack.api.bolt.middleware.MiddlewareOps
Utilities for Middleware.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisNoAuthRequiredRequest(RequestType requestType) Returns true if there is no need to check the existence of valid app installations.static booleanisNoSlackSignatureRequest(RequestType requestType) Returns true if there is no need to verify a request signature with a given request.static booleanReturns true if the request is an Event API payload and matches specific types.
-
Method Details
-
isNoSlackSignatureRequest
Returns true if there is no need to verify a request signature with a given request.- Parameters:
requestType- request type- Returns:
- true if the request normally doesn't have a signature.
-
isNoAuthRequiredRequest
Returns true if there is no need to check the existence of valid app installations.- Parameters:
requestType- request type- Returns:
- true if the request normally doesn't have a valid bot token for it.
-
isNoTokenRequiredRequest
Returns true if the request is an Event API payload and matches specific types.- Parameters:
req- request- Returns:
- true if middleware can skip fetching tokens
-