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