You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This is the code i am using, funny thing is the content i am trying to print in console isn't even prining, and i get Unauthorized returned.
passport.use(new ClientPasswordStrategy(
function(clientId, clientSecret, done) {
console.log("here")
console.log(clientId)
console.log(clientSecret)
db.clients.findByClientId(clientId, function (err, client) {
if (err) { return done(err); }
if (!client) { return done(null, false); }
if (client.clientSecret != clientSecret) { return done(null, false); }
return done(null, client);
});
}
))
these are the params i am sending, http://localhost:3000/oauth/token?grant_type=authorization_code&code=xwOnUymH0vexcMzd&redirect_uri=http://localhost:3000/login&client_id=abc123&client_secret=ssh-secret
tried sending in form data and in body, am i doing something wrong, please help i am suck on this.
The text was updated successfully, but these errors were encountered:
Hi,
This is the code i am using, funny thing is the content i am trying to print in console isn't even prining, and i get Unauthorized returned.
passport.use(new ClientPasswordStrategy(
function(clientId, clientSecret, done) {
console.log("here")
console.log(clientId)
console.log(clientSecret)
db.clients.findByClientId(clientId, function (err, client) {
if (err) { return done(err); }
if (!client) { return done(null, false); }
if (client.clientSecret != clientSecret) { return done(null, false); }
return done(null, client);
});
}
))
these are the params i am sending,
http://localhost:3000/oauth/token?grant_type=authorization_code&code=xwOnUymH0vexcMzd&redirect_uri=http://localhost:3000/login&client_id=abc123&client_secret=ssh-secret
tried sending in form data and in body, am i doing something wrong, please help i am suck on this.
The text was updated successfully, but these errors were encountered: