Do you want Steem users to login to your Drupal, Wordpress or other PHP site? Yes, it's now possible for Steem users to use their Steem identity in order to log in to your Drupal, Wordpress or other PHP website. Before I tell you the story of the development of those 3 projects, let's have a look at some pictures... or just test the login using the Social Auth Login above and click the Steem logo !
This is the Social Auth module for Drupal, which allows users to log in with third-party identity providers like GitHub, LinkedIn, Twitter, ... and of course Steemconnect !
Now what is Steemconnect ?
SteemConnect by @busy.org is a identity layer built on top of the Steem blockchain, that allows you to connect to authorized apps is a secure and convenient way. They have been working with Steemit so apps can interact with Steem users without getting their sensible information (like secret key & password). Basically, if an app uses Steemconnect, it only has access to what the user allows.
And now, back to Drupal. You just logged to the Drupal site, and the module created a new user for you with your information fetched from your Steem account. You can interact with website as if you had created a classic account.
I'm a Drupal developer, and I also have a lot of love for Wordpress. So I figured: why not developing the same functionnality for Wordpress? After some research, I found the excellent Wordpress Social Login plugin and decided to go with it.
Same thing there, you are redirect to Steemconnect. If you accept to grant the "Login" right to the application, then you will go back again the Wordpress site.
Development
Now, the story behind those 3 projects, and some technical details including some issues to discuss!
I've been just recently involved in blockchain technology. I developed a Drupal 7 suite of Ethereum modules (not yet released, more will come about this in another post, maybe). Thing is, I got captivated by blockchain (and I admit the cryptocurrency financial boom has a lot to do with my interest, too).
Then I discovered Steemit, and in fact I discovered it through Utopian.io. What an awesome project to reward awesome writers with crypto! And opensource contributors too! So, my first search was of course "Drupal". I saw @gokulnk's article in which he was running a gig to develop a Drupal module with Steemconnect: https://steemit.com/utopian-io/@gokulnk/socialauth-steemconnect-module-for-drupal
The rest is history, and lots, lots of hours and evenings spent developing late. Aaaaannnnnd.... Some delicate negociation, explanation, and all, with my girlfriend :) Indeed, I wanted to rush those developments and be the first!
@gokulnk's research was right, Social Auth module was the way to go. I quickly realised there was no PHP library to leverage Steemconnect, like there are for most providers. I didn't notice first that Social Auth 8.x-2.x used mainly the excellent PHPLeague oAuth2 client. So I started developing with another library, not mainstream. I quickly came back naturally to oauth2-client and developed a provider for Steemconnect.
It was at the point when it was working that I got a very nice surprise, and realised that most of recent releases of Drupal Social Auth providers used oauth2-client. So it was really easy to develop https://www.drupal.org/project/social_auth_steemconnect.
One thing is yeat to discuss: Steemconnect does NOT provide the user email. I can understand why, we are in crypto space. But I really needed an email to develop the Drupal and Wordpress modules. So I added a fake user email built like this : [email protected]. This is something that has to be discussed. Your toughts (and PRs !!!) on this topic are welcome on GitHub
Then I developed the Drupal module and submitted an issue on Drupal.org, in order to push the code to the still empty module - and win Gokul NK's contest :)
Last task was to develop a Wordpress plugin. It was quite difficult to find a correct code base, not too specific and offering flexibility with providers. But I finally came upon Wordpress Social Login, which is a really niceproject. Ironically, if I wanted to make a PR and hope it will be accepted, I could not really use my brand new oauth2-steemconnect. So I started again to have fun with Steemconnect API. But it was quick and I really loved the simplicity and power of Wordpress Social Login. Ah, yes, Drupal developers CAN love Wordpress, and even ADORE it, sometimes :)
Now, here I am, writing this article, then I will prepare my Drupal and Wordpress sites to host the demos. At this time, you should be able to check them out :
- Drupal demo: https://guillaumeduveau.com/en/drupal/8/social_auth_steemconnect (here!)
- Wordpress demo: https://wordpress.guillaumeduveau.com/steemconnect
The future?
Obviously, there are many interesting to do with Drupal, Wordpress and Steemit and the Steem blockchain. I will take a well-earned rest and then will probably code something else. Which functionnalities would you like to see with Drupal / Wordpress / Steem? Just let me know below, and who knows!
Thanks for reading!
I don't see the STEEM. logo on WordPress?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You have collected your daily Power Up! This post received an upvote worth of 0.71$.
Learn how to Power Up Smart here!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
There's a custom text login link in the article, or a logo with the same link on the user login page :
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Wow this is great. I thought there was no response for the Gig and it has died down. I am pleasantly surprised. It feels good to see that the Gig has led to this.
I just made you the maintainer for the module.
Now that I know you have worked on this, I had a few other ideas for Drupal Steem integration. Will make a post about it and tag you ;)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks Gokul, I just pushed the beta1 release on Drupal.org :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @guix77! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
You got your First payout
You got a First Reply
Award for the number of comments
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Super ! Thank you very much
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You're welcome :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
How to use steemconnect with WordPress? I don't see the STEEM logo. Thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
You're so nice for commenting on this post. For that, I gave you a vote!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
There's a custom text login link in the article, or a logo with the same link on the user login page :
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Super thank you! You're the best
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks ! Very good
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thumbs Up for WordPress. What else I can do once I loggedin to WordPress?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks! Everything you let your authentificated Wordpress users do in your site, except emails which obviously won't ever receive anything since they are fake. There are no dedicated Steem functions for now, and there wont' be in this module which is a general login provider. But anything that can be done with the Steemconnect API can be done in a Wordpress plugin. I saw one on Steemit to autopublish from your Wordpress to your Steemit account for instance.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks. Autopublish is an expected functionality.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
The module I was talking about : https://wordpress.org/plugins/wp-steem/
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@guix77 Thanks for sharing.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Great post
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
what about compiling a Joomla login-plug-in ?
If I am not wrong, it' sone of the most used CMS
nice work by the way !
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks, well, some tools are there now and also 3 PHP examples (with oauth2-steemconnect's README). I guess some Joomla dev might do it, but I don't dev on Joomla, sorry!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
No problem :-) Maybe someone will read my comment and add it to joomla's collection, it could also give a nice exposure of steem to a new public :-)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi~
How did you achieve this effect?
use wordpress plugin?
look forword you reply
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hi,
If you download the official Wordpress Social Login it won't work because it's not included in it yet (I've asked and am waiting for news). If you want it now, you can download the branch "steemconnect" of my fork of the project : https://github.com/guix77/wordpress-social-login
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thank you very much
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
How do I get this to work with my wordpress site? I would love to have new user accounts on my wordpress site have the option to be created from steemconnect! I can't quite figure how to install this. Has the project been abandoned?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
bien joué
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
:)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Excellent! Any way to integrate an upvoting button into Wordpress when a user is logged?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
@guix77 I have a project with a steemconnect wp plugin i am having a tough time with is it possible we can link up in discord and chat about it
You can see the video and my issue here look to the second half of the video for the issue on my wp site
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @guix77! You received a personal award!
Click here to view your Board
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Congratulations @guix77! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit