Skip to content
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

How to publicly distribute a JBot #173

Open
ChrisBrumfitt01 opened this issue Apr 8, 2020 · 0 comments
Open

How to publicly distribute a JBot #173

ChrisBrumfitt01 opened this issue Apr 8, 2020 · 0 comments

Comments

@ChrisBrumfitt01
Copy link

Hi,

I don't see how you would go about making a JBot publicly distributable? Would really appreciate some help.

I have added a redirect /authorization REST endpoint to the JBot project - when someone clicks on the "Add to slack" button which I have generated, this is the endpoint that gets called, which in turn calls https://slack.com/api/oauth.v2.access to get an access token - I'm doing this part successfully.

Looking at the SlackBot.java - it reads in the ${slackBotToken} from the properties file. But how can I get it to use the above mentioned access token instead?

Will I need to create a new instance of SlackBot each time it is distributed to a new user? With each instance storing a different access token? But it looks impossible to set the token before the @PostConstruct method in Bot.java runs...

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant