-
Notifications
You must be signed in to change notification settings - Fork 399
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
Clarify oauth setup requirements and customization options #1122
Clarify oauth setup requirements and customization options #1122
Conversation
docs/_basic/authenticating_oauth.md
Outdated
@@ -27,7 +68,7 @@ const app = new App({ | |||
clientId: process.env.SLACK_CLIENT_ID, | |||
clientSecret: process.env.SLACK_CLIENT_SECRET, | |||
stateSecret: 'my-state-secret', | |||
scopes: ['channels:read', 'groups:read', 'channels:manage', 'chat:write', 'incoming-webhook'], | |||
scopes: ['chat:write', 'incoming-webhook'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't need so many scopes. It's already a very cluttered code sample.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. If we revisit this part, we may want to have commands
and chat:write
instead because that's a common minimum set for Bolt apps (you use say()
, shortcuts, slash commands etc. but don't use incoming webhooks with Bolt, right?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing - I've modified the scopes and also adjusted the comments in the storeInstallation
bit.
docs/_basic/authenticating_oauth.md
Outdated
clientId: process.env.SLACK_CLIENT_ID, | ||
clientSecret: process.env.SLACK_CLIENT_SECRET, | ||
scopes: ['chat:write'], | ||
stateVerification: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to highlight this way (=as the first example code in the section). Can we we move this to the bottom of the section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree that having it appear as the first code sample in the section may not be great. More than that it's an org-wide app installation related section so it probably makes more sense in it's own section under a new heading Org-wide installation. I've added that to the latest changes.
docs/_basic/authenticating_oauth.md
Outdated
@@ -27,7 +68,7 @@ const app = new App({ | |||
clientId: process.env.SLACK_CLIENT_ID, | |||
clientSecret: process.env.SLACK_CLIENT_SECRET, | |||
stateSecret: 'my-state-secret', | |||
scopes: ['channels:read', 'groups:read', 'channels:manage', 'chat:write', 'incoming-webhook'], | |||
scopes: ['chat:write', 'incoming-webhook'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. If we revisit this part, we may want to have commands
and chat:write
instead because that's a common minimum set for Bolt apps (you use say()
, shortcuts, slash commands etc. but don't use incoming webhooks with Bolt, right?)
Codecov Report
@@ Coverage Diff @@
## main #1122 +/- ##
==========================================
- Coverage 71.71% 70.92% -0.80%
==========================================
Files 15 14 -1
Lines 1354 1324 -30
Branches 402 392 -10
==========================================
- Hits 971 939 -32
+ Misses 312 311 -1
- Partials 71 74 +3
Continue to review full report at Codecov.
|
f1d7e95
to
eae1b3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found two code snippet errors. Apart from them, looks good to me. We can merge this PR after v3.7 release.
a51c65f
to
7506067
Compare
Summary
Updates Oauth documentation to be consistent with changes in bolt-js/pull//#1116. Adjusts formatting for better readability and adds clarifying language to concepts (Redirect URI vs. Redirect URI path) etc.
Requirements (place an
x
in each[ ]
)