开发者

Can I log into Passport.js by sending post requests from a python application?

开发者 https://www.devze.com 2022-12-07 19:33 出处:网络
I made a REST api with Node/express开发者_如何学Go and I added a login feature using Passport.js, I want to be able to login to this from a CLI im making with python.

I made a REST api with Node/express开发者_如何学Go and I added a login feature using Passport.js, I want to be able to login to this from a CLI im making with python.

Im able to send a post request to my login url from my python app and get authorized by passport and send the info i want back to the python program, but once the python program has ended the express app doesn't cache me as logged in and in order to get back any info from the express app i have to send a Post request to the login url every time. The reason I thought this would work is because I can send Post requests from the REST-client extension and the app functions how I want. I have express-session etc set up, like i said it functions how I want with REST-client.

0

精彩评论

暂无评论...
验证码 换一张
取 消