Re:Show HN: OAuth microservice for FB, Twitter, etc.
by nielsole on Tuesday July 04, 2017 @11:06AM
(#14696264)
"On successful login two cookies will be created:
"
This looks like just enough rope to hang oneself. If you check only the profile variable it could easily be set by the user herself. So I guess you need to check the jwt.
I guess it makes more sense if this would be run as reverse proxy so the cookies can't be tampered with.
[ Parent
| on HN ]
Re:Show HN: OAuth microservice for FB, Twitter, etc.
by transitorykris on Tuesday July 04, 2017 @12:28PM
(#14696757)
The JWT is signed (see LW_JWT_SECRET env variable), you'll want to check the signature before trusting the rest of the contents.