From 41a2e7ec6b7d29e414d607643fdf13eec243a001 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Thu, 28 May 2020 08:22:24 +0900 Subject: [PATCH] Fix #474 by making redirect_uri optional --- .../com/slack/api/methods/impl/MethodsClientImpl.java | 8 ++++++-- .../src/test/java/test_locally/api/methods/OAuthTest.java | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java b/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java index 5ba4851db..f8430ce0c 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java @@ -1680,7 +1680,9 @@ public MpimOpenResponse mpimOpen(RequestConfigurator r.clientId("abc").clientSecret("xyz").code("xxx")).isOk(), is(true)); + assertThat(slack.methods(ValidToken).oauthToken(r -> r.clientId("abc").clientSecret("xyz").code("xxx")).isOk(), is(true)); + assertThat(slack.methods(ValidToken).oauthV2Access(r -> r.clientId("abc").clientSecret("xyz").code("xxx")).isOk(), is(true)); + } + @Test public void test_async() throws Exception { assertThat(slack.methodsAsync(ValidToken).oauthAccess(r ->