slackapi / java-slack-sdk

Slack Developer Kit (including Bolt for Java) for any JVM language
https://slack.dev/java-slack-sdk/
MIT License
570 stars 209 forks source link

Before/after oauth hooks in Java SDK? #1249

Closed jjoslin closed 9 months ago

jjoslin commented 9 months ago

Hi,

I'm developing with the Bolt Java SDK and I'm trying to figure out how to associate an install (ideally a team/workspace id) with a proprietary id on my end.

This existing question is basically the same as mine but I'm not able to find the beforeRedirection and afterInstallation equivalents in the Java SDK.

Am I missing something or is it not support? If it isn't currently supported then I would appreciate any pointers on how I can accomplish a similar task.

thanks!

zimeg commented 9 months ago

Hey @jjoslin! 👋 Those exact hooks aren't present in the SDK but an approach similar to what's shown here can be used to customize the logic in your callbacks to mimic the afterInstallation hook. I'm not immediately sure of an alternative for beforeRedirection but it might be possible include additional logic when issuing state after a request.

jjoslin commented 9 months ago

Thanks for the pointers @zimeg!