-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MethodsClientImpl oauthV2Access: redirect_uri should be optional #474
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
project:slack-api-client
project:slack-api-client
Milestone
Comments
natevaughan
changed the title
MethodsClientImpl oauthV2Access:
MethodsClientImpl oauthV2Access: redirect_uri should be optional
May 27, 2020
redirect_uri
should be optional
seratch
added
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
project:slack-api-client
project:slack-api-client
labels
May 27, 2020
@natevaughan Thanks for reporting this. You're right. I will be fixing this very soon. |
seratch
added a commit
to seratch/java-slack-sdk
that referenced
this issue
May 27, 2020
2 tasks
seratch
added a commit
that referenced
this issue
May 27, 2020
Fix #474 by making redirect_uri optional
Thanks again. I will be releasing a new patch version today (+09:00) |
seratch
added a commit
that referenced
this issue
May 28, 2020
* [slack-api-model] Add missing fields in objects (confirm.style in blocks, user.is_invited_user: boolean, message.hidden, Slack post related fields in file objects) - thanks @seratch * [slack-api-client etc] #466 #462 Calls API support - thanks @seratch * [slack-api-client] #475 #474 Make redirect_uri for oauth.access / oauth.v2.access optional - thanks @natevaughan @seratch * [slack-api-client] #476 Bump dependencies (okhttp, micronaut, tyrus-standalone-client) - thanks @seratch * [slack-api-client] #459 Adding ping message and pong event to RTM client - thanks @gaspardpetit * [slack-api-client] #451 Add support and check for the event subtypes in RTM client - thanks @gaspardpetit * [bolt] #455 Improve OAuth flow module to consider the cases where team is missing in oauth.v2.access responses - thanks @seratch * [bolt] #476 Bump dependencies (aws-java-sdk-s3) - thanks @seratch
Thank you @seratch, amazing work at amazing speed! |
emanguy
pushed a commit
to emanguy/java-slack-sdk
that referenced
this issue
Jun 22, 2020
emanguy
pushed a commit
to emanguy/java-slack-sdk
that referenced
this issue
Jun 22, 2020
* [slack-api-model] Add missing fields in objects (confirm.style in blocks, user.is_invited_user: boolean, message.hidden, Slack post related fields in file objects) - thanks @seratch * [slack-api-client etc] slackapi#466 slackapi#462 Calls API support - thanks @seratch * [slack-api-client] slackapi#475 slackapi#474 Make redirect_uri for oauth.access / oauth.v2.access optional - thanks @natevaughan @seratch * [slack-api-client] slackapi#476 Bump dependencies (okhttp, micronaut, tyrus-standalone-client) - thanks @seratch * [slack-api-client] slackapi#459 Adding ping message and pong event to RTM client - thanks @gaspardpetit * [slack-api-client] slackapi#451 Add support and check for the event subtypes in RTM client - thanks @gaspardpetit * [bolt] slackapi#455 Improve OAuth flow module to consider the cases where team is missing in oauth.v2.access responses - thanks @seratch * [bolt] slackapi#476 Bump dependencies (aws-java-sdk-s3) - thanks @seratch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
project:slack-api-client
project:slack-api-client
Issue Type
[ x ] Bug
[ ] Enhancement / Feature request
[ ] Question
[ ] Documentation
Description
Hi @seratch !
I'm seeing this error when sending a null
redirect_uri
inOauthV2AccessRequestBuilder
:It seems OKHTTP's form builder specifies that all param values must be non-null.
I think simply wrapping this line in
MethodsClientImpl
with a null check should suffice:Filing this as a bug due to a mismatch between Slack's Oauth V2 api documentation, which specifies
redirect_uri
as optional.I should mention that I previously was using a hand-cooked Slack API client and Oauth worked fine without
redirect_uri
.The issue is reproducible in:
The steps to reproduce are:
code
,clientId
, andclientSecret
(do not setredirect_uri
):The expected result is the request should succeed.
The actual result is the following exception from OKHTTP:
Thank you for your amazing work!
The text was updated successfully, but these errors were encountered: