Class SingleTeamAuthorization
java.lang.Object
com.slack.api.bolt.middleware.builtin.SingleTeamAuthorization
- All Implemented Interfaces:
Middleware
Verifies if the given access token when booting this app is valid for incoming requests.
-
Constructor Summary
ConstructorDescriptionSingleTeamAuthorization
(AppConfig appConfig, InstallationService installationService) SingleTeamAuthorization
(AppConfig appConfig, AuthTestResponse initialAuthTest, InstallationService installationService) -
Method Summary
Modifier and TypeMethodDescriptionapply
(Request req, Response resp, MiddlewareChain chain) protected AuthTestResponse
callAuthTest
(AppConfig config, MethodsClient client)
-
Constructor Details
-
SingleTeamAuthorization
-
SingleTeamAuthorization
public SingleTeamAuthorization(AppConfig appConfig, AuthTestResponse initialAuthTest, InstallationService installationService)
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceMiddleware
- Throws:
Exception
-
callAuthTest
protected AuthTestResponse callAuthTest(AppConfig config, MethodsClient client) throws IOException, SlackApiException - Throws:
IOException
SlackApiException
-