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

Customize user-facing message sent when an installation is not managed by bolt-python app #1074

Closed
escc86 opened this issue May 2, 2024 · 1 comment · Fixed by #1077
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@escc86
Copy link

escc86 commented May 2, 2024

Hello I have a question regarding a message that user receives when has not installed the app or completed the oAuth flow.

When a user click a button or execute an slack command receives the following message

We apologize, but for some unknown reason, your installation with this app is no longer available. Please reinstall this app into your workspace

My question: is there a way to do not send this message to the user or send a custom message instead?

@seratch seratch added the enhancement New feature or request label May 3, 2024
@seratch seratch added this to the 1.x milestone May 3, 2024
@seratch
Copy link
Member

seratch commented May 3, 2024

Hi @escc86, thanks for writing in. At this moment, there is no way to customize the message, but I agree this could be a valid feature request. I may enhance the built-in middleware in future releases: https://github.com/slackapi/bolt-python/blob/v1.18.1/slack_bolt/middleware/authorization/multi_teams_authorization.py#L90-L100

@seratch seratch changed the title How to avoid send Ephemeral message with oAuth implementation Customize user-facing message sent when an installation is not managed by bolt-python app May 8, 2024
@seratch seratch self-assigned this May 8, 2024
@seratch seratch modified the milestones: 1.x, 1.18.2 May 8, 2024
seratch added a commit to seratch/bolt-python that referenced this issue May 8, 2024
@seratch seratch modified the milestones: 1.18.2, 1.19.0 May 8, 2024
seratch added a commit to seratch/bolt-python that referenced this issue May 8, 2024
seratch added a commit that referenced this issue May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants