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

improved oauth success user experience flow #1011

Merged
merged 2 commits into from
May 7, 2020

Conversation

stevengill
Copy link
Member

Summary

Fix for issue #1010.

It will now show a generic success page which will automatically launch the redirect to the slack app. It also includes a button to launch the slack app incase users have javascript turned off or this click no during the original popup window.

This is an improved flow vs the allow permissions tab staying open with a spinning button

Requirements (place an x in each [ ])

Screen Shot 2020-05-06 at 4 25 06 PM

@stevengill stevengill added semver:patch pkg:oauth applies to `@slack/oauth-helper` labels May 6, 2020
@stevengill stevengill self-assigned this May 6, 2020
@stevengill stevengill requested a review from aoberoi May 6, 2020 23:27
@stevengill
Copy link
Member Author

Let me know if the redirect message should be tweaked.

@aoberoi
Copy link
Contributor

aoberoi commented May 6, 2020

This is a good improvement! I can imagine folks wanting to update the styles on the success page to look prettier. Maybe we can update or extend the sub-task in the example for customizing the success handler to show how someone could render their own HTML page instead of only showing res.send('success')? I also just noticed that res.send() assumes use of Express. Should it be res.end()?

@stevengill
Copy link
Member Author

Nice catch! I'll update that example part of this PR.

@codecov
Copy link

codecov bot commented May 6, 2020

Codecov Report

Merging #1011 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1011   +/-   ##
=======================================
  Coverage   94.40%   94.40%           
=======================================
  Files          12       12           
  Lines         768      768           
  Branches      173      173           
=======================================
  Hits          725      725           
  Misses         14       14           
  Partials       29       29           
Flag Coverage Δ
#eventsapi 89.61% <ø> (ø)
#interactivemessages 95.04% <ø> (ø)
#webapi 96.36% <ø> (ø)
#webhook 87.50% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5be21f5...cff920c. Read the comment docs.

@stevengill stevengill merged commit 4521cb9 into slackapi:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:oauth applies to `@slack/oauth-helper` semver:patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants