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

Customise HTML for "slack/oauth_redirect" page #1571

Closed
4 of 10 tasks
j1mie opened this issue Aug 30, 2022 · 4 comments
Closed
4 of 10 tasks

Customise HTML for "slack/oauth_redirect" page #1571

j1mie opened this issue Aug 30, 2022 · 4 comments
Labels
auto-triage-stale question M-T: User needs support to use the project

Comments

@j1mie
Copy link

j1mie commented Aug 30, 2022

Description

Similar to #982 is there a way to change the HTML for the "/slack/oauth_redirect" page? It current displays a page without styling, it would be great to have a way to customise this.

Screenshot 2022-08-30 at 14 10 06

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • example code related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
@filmaj
Copy link
Contributor

filmaj commented Aug 30, 2022

Hey @j1mie !

This is possible, though kind of difficult to figure out from our docs - it is buried deep!

Check out the bolt-js docs on Authenticating with OAuth, scroll down to the bottom of this section where there is a collapsed "Customizing OAuth defaults". Expand this section and check out some of the options (as well as the example alongside the content). What you want to specify is installerOptions.callbackOptions.success or installerOptions.callbackOptions.successAsync. This lets you define a custom successful-oauth-redirect handler. This handler gets access to a res parameter - which is the HTTP response that controls what the user sees at the end of the OAuth redirect. These are all features of the underlying @slack/oauth package.

Some links that may be helpful:

Hope that's helpful.

Cheers!

@filmaj filmaj added the question M-T: User needs support to use the project label Aug 30, 2022
@github-actions
Copy link

github-actions bot commented Oct 3, 2022

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

@github-actions
Copy link

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.

@philwhln
Copy link

Thanks @filmaj! Just used your suggestion and worked great 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-triage-stale question M-T: User needs support to use the project
Projects
None yet
Development

No branches or pull requests

3 participants