___  ___    _ _    _  _ _____   _____
 / __|/ _ \  | | |  | || |_ _\ \ / / __|
| (_ | (_) | |_  _| | __ || | \ V /| _|
 \___|\___/    |_|  |_||_|___| \_/ |___|

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

SteemConnect Passport Authentication With An Example

BY: @mildfun | CREATED: March 26, 2018, 7:50 p.m. | VOTES: 6 | PAYOUT: $11.16 | [ VOTE ]

Passport-SteemConnect

A SteemConnect authentication strategy for Passport.

[IMAGE: https://steemitimages.com/DQmaTgSbHHAH1i3QsFDfckpkyD4Qomh1bNSr4iZEMfHdaYe/2.png]

This module lets you authenticate using SteemConnect in your Node.js applications.
By plugging into Passport, SteemConnect authentication can be easily and
unobtrusively integrated into any application or framework that supports
Connect-style middleware, including
Express and NextAuth

To use this passport Strategy just install passport-steemconnect

Install

$ npm i passport-steemconnect --save

[IMAGE: https://steemitimages.com/DQmXZwwMeL28GFF8dQRTYvwCzt6LnqjLQYyHxfuPaco2d6v/1.png]
Passport Strategy: https://github.com/SMWARREN/Passport-SteemConnect
Passport Strategy With Example : https://github.com/SMWARREN/SteemConnect-Next-Auth-Micro-Service

TAGS: [ #nodejs ] [ #steemconnect ] [ #passport ] [ #dev ] [ #example ]

Replies

@leap8 | March 27, 2018, 1:11 p.m. | Votes: 1 | [ VOTE ]

thanks. I'm going to try this.

@mildfun | March 27, 2018, 9:05 p.m. | Votes: 1 | [ VOTE ]

Sounds good, Let me know if you have any issues, and i will fix them for you =D

@leap8 | March 30, 2018, 7:30 p.m. | Votes: 0 | [ VOTE ]

Thanks! I'm getting this error:

[IMAGE: https://steemitimages.com/DQmRaoGxzHUhnRo8oZeYG1SgwSMMhzwimZ1XeCtkHA5774Y/image.png]

Please let me know what you need from me to get this resolved.

Here's my findOrCreate function. I suspect it might not work that way. I just did that because others (facebook) work that way to see if it works. What are you recommendations for this function?

[IMAGE: https://steemitimages.com/DQmcXvK91b4U8ysA1ovjbdQKpbUrvKXoCG8iKdrAZZZEW7S/image.png]

@mildfun | April 8, 2018, 8:27 p.m. | Votes: 0 | [ VOTE ]

npm install passport-steemconnect@1.0.4 - should fix the issue, their was an extra argument in the strategy file on line 100.

@leap8 | April 15, 2018, 11:16 p.m. | Votes: 1 | [ VOTE ]

I installed it and now I'm getting this error:
[IMAGE: https://steemitimages.com/DQmcy1QToYWyF4mUKuWAd8pKTyWf5rTGEZu2d6KAf18iNRq/image.png]

thanks for your help

@mildfun | April 17, 2018, 1:31 p.m. | Votes: 0 | [ VOTE ]

@leap8 i have made another example on how to use my library which can be found at https://github.com/SMWARREN/express-4.x-steemconnect-userinfo-example

@leap8 | April 18, 2018, 9:53 a.m. | Votes: 0 | [ VOTE ]

I cloned your example to cloud 9 and got the same error as above. So, I thought maybe it's something I'm doing there. I forked your code and deployed it on heroku without modifying it at all and it didn't work. I'm just getting an application error and it doesn't even open to even get into the login parts.
You can see it at https://passportsteemconnect.herokuapp.com/ Does it work for you? Thanks

@mildfun | April 19, 2018, 8:44 p.m. | Votes: 0 | [ VOTE ]

if you have discord, im mildfun on there or you can add me on github and i can help

@leap8 | April 21, 2018, 2:03 p.m. | Votes: 0 | [ VOTE ]

thanks for your help. I'll write you on discord when i get a chance. I'm leap8 there too.

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>