-
Notifications
You must be signed in to change notification settings - Fork 398
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 trigger app_uninstalled / token_revoked #1347
Comments
Hi @TroutZen, thanks for asking the question!
The Also, as for org-wide installations (for Enterprise Grid customers), even all the tokens were revoked, this event never happens until the Org admin completely disable the app in the Org-level.
Yes, this is correct. As mentioned above, if your app have multiple tokens and either your end-user or your app itself revokes one token, only
To completely uninstall your app from a workspace, all the tokens must be revoked.
As long as your app manages all the granted tokens, your app can perform Lastly, I know that you've already recognized this but we are going to add a new functionality to handle these events for you: #1203 Once the feature is released, you can rely on the built-in support for this use case. I hope this helps. |
@seratch I would think that my app is truly being uninstalled when I go through my process. I use this button on the slack.com app page to uninstall the app. After that, the page shows the "add to slack" button again. The app isn't present in my workspace. However, when I do click add to slack, If this is expected behavior, then can you tell me what the "Remove app" button actually does, and why it wouldn't trigger the |
The only causes that I can think of are:
|
@seratch thank you for the quick response!
I've enabled slack events, and I think I've confirmed it working by subscribing to the
I think I can confirm it's not an org-wide install. As far as I know I'm not part of an org, and in my storeInstallation, I can see My code for listening to
|
@asherbig Can you double-check whether these events are added in your Events API configuration page? |
@seratch That was it! Now I feel silly haha. Thank you so much! |
I think this might be my issue as well, @seratch... :), but spinning up my dev environment to double check, ty!!. It didn't cross my mind strangely enough to need to register those. @seratch - For |
Yes, this is correct. Also, checking https://api.slack.com/events/app_uninstalled would be helpful for you. There are some information on how the event works in the page. |
Closing the loop, this was my issue :) ty! |
Thanks for checking! |
Hi @seratch -- I wasn't sure whether to create a new issue or not since my question is so similar to this except it is related to just the second question:
and I am already subscribed to those two bot events. When I uninstall the app entirely, I get both the A user of our integration has the ability to initiate channel-specific token revoking through the Slack App Directory, and I want to be able to receive specifically these events, not just ones through the Am I missing something? Is this actually expected behavior? |
Description
Hi. I am trying to figure out how to trigger deleteInstallation and according to this issue #1201, I need to trigger the
app_uninstalled
event and thetoken_revoked
event. I'm finding it difficult to get these events to be triggered and would appreciate some guidance.app_uninstalled
does this require every user to have the app removed? How / where does that actually happen?token_revoked
without triggeringapp_uninstalled
or do they always happen together?Things I have tried
Revoking token from app directory
Nothing happened when revoking the token, however 2 other users are connected to the app. Do I need to revoke their tokens as well? (It doesn't look like I have permissions to do that which might be another issue).
Removing the app from the list of apps in my workspace
Im guessing the above does nothing meaningful.
Thanks, feeling a little lost!
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: