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
ConstructorsConstructorDescriptionSingleTeamAuthorization(AppConfig appConfig, InstallationService installationService) SingleTeamAuthorization(AppConfig appConfig, AuthTestResponse initialAuthTest, InstallationService installationService) -
Method Summary
Modifier and TypeMethodDescriptionapply(Request req, Response resp, MiddlewareChain chain) protected AuthTestResponsecallAuthTest(String token, AppConfig config, MethodsClient client)
-
Constructor Details
-
SingleTeamAuthorization
-
SingleTeamAuthorization
public SingleTeamAuthorization(AppConfig appConfig, AuthTestResponse initialAuthTest, InstallationService installationService)
-
-
Method Details
-
apply
- Specified by:
applyin interfaceMiddleware- Throws:
Exception
-
callAuthTest
protected AuthTestResponse callAuthTest(String token, AppConfig config, MethodsClient client) throws IOException, SlackApiException - Throws:
IOExceptionSlackApiException
-