passport-slack | Slack OAuth v2 strategy for Passport js | OAuth library
kandi X-RAY | passport-slack Summary
kandi X-RAY | passport-slack Summary
Passport strategy for authenticating with the Slack OAuth v2 API. This lets you use the v2 OAuth endpoints, set granular scopes (both user_scope and scope) and get user profile.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of passport-slack
passport-slack Key Features
passport-slack Examples and Code Snippets
Community Discussions
Trending Discussions on passport-slack
QUESTION
I'm in the process of setting up oauth following the process laid out by Slack for my Slack app (I've used a token previously for the same app). Unfortunately I'm hitting a snag with step 1. I'm using Postman to test out the GET
request to https://slack.com/oauth/authorize
by passing along 3 parameters (client_id
, scope
, & redirect_uri
) expecting something that gets me closer to receiving a code
(step 2). But what I receive is an error message of Invalid client_id parameter
. I've checked my client_id
in Postman against what's provided by Slack multiple times but can't figure out where this issue is stemming from. What am I doing wrong?
Additionally I'm thinking of using Passport with the Passport-Slack strategy for authentication.
...ANSWER
Answered 2018-Oct-05 at 21:37The reason this does not work is that you have defined the properties in the header, but you need to provide those as GET parameters.
To fix remove them from the header and either add them to the URL (e.g. ?client_id=xxx&scope=xxx
) or click on Params next to the Send button to enter them directly.
QUESTION
I'm developing an app that has slack signin functionality.
I'm using passport-slack for OAuth but having some problem about routing which return Cannot GET /auth/slack
I followed the step by step procedure which can be found in https://github.com/mjpearson/passport-slack but still no luck
My current code for passport is like this which I think I define the routes correctly
...ANSWER
Answered 2017-May-05 at 03:44/auth/slack
is just a middleware for authentication, which means all the routes begin with /auth/slack
will invoke this middleware.
Also because you don have any response
for this route, and passport will just invoke the next()
function, so Cannot GET /auth/slack
You should put /auth/slack/callback
in your slack settings, slack will redirect the user to this route after the user sign in on slack
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install passport-slack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page