Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-08-15 20:12:05

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

kuo_glogin: log in to Textpattern with Google account

First I must put some fear in you: this plugin is experimental, use at your own risk. This one adds couple new tables (one for plugin’s preferences, other for banned users) to your database and modifies existing txp_users table.

With this plugin people can register and login to your Textpattern website’s public side with their existing Google account. The plugin uses Google API’s Client Library for PHP. It can be found from GitHub. It’s also included to the downloadable zip file. To use this plugin you should:

  1. Upload the folder kuo_glogin to the root of your Textpattern website.
  2. Install the plugin file and activate it.
  3. Go to Google Developers Console, create a new project which has Google+ API active, and create a Client ID and Client Secret.

(More detailed instructions and description is inside the plugin file, behind Extensions tab.)

Last edited by kuopassa (2014-08-16 20:16:57)

Offline

#2 2014-08-16 05:11:33

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: kuo_glogin: log in to Textpattern with Google account

Looks nice! I was able to login without any problems.

Offline

#3 2014-08-16 06:11:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: kuo_glogin: log in to Textpattern with Google account

works just fine from my end:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2014-08-16 16:01:16

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: kuo_glogin: log in to Textpattern with Google account

Worked for me.

Offline

#5 2014-08-16 20:15:53

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: kuo_glogin: log in to Textpattern with Google account

Thanks for feedback! The plugin’s been updated and is now available. Download link and more info is at the opening post.

Offline

#6 2014-08-17 01:38:27

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: kuo_glogin: log in to Textpattern with Google account

What is the advantage or what is interesting about this, log in with the Google account?

Offline

#7 2014-08-17 09:55:36

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: kuo_glogin: log in to Textpattern with Google account

User can access somewhat easily to content which is shown only to registered users. For example website could offer freebies (like articles, images, files) to their logged in users. Website owner then in return can benefit of having a list of names, email addresses etc. information, which can be used in newsletters. Stuff like that.

Offline

#8 2014-08-17 12:46:52

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: kuo_glogin: log in to Textpattern with Google account

Oh, it is public side, I had not noticed that.

Offline

#9 2014-08-17 14:55:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,011
Website GitHub Mastodon Twitter

Re: kuo_glogin: log in to Textpattern with Google account

It would be cool – maybe not possible – if the logout screen did not end on txp’s login screen.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2014-08-17 18:45:37

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: kuo_glogin: log in to Textpattern with Google account

colak: Yes, it’s possible. Textpattern admin can set in the plugin’s preferences the URL where user is redirected after logging out.

Offline

#11 2014-09-30 12:44:33

SPKuja
Member
From: England
Registered: 2013-05-18
Posts: 55
Website

Re: kuo_glogin: log in to Textpattern with Google account

I’m just trying to install the plugin, but I seem to be getting an error. I’ve double checked the settings, and tried creating a new project, but to no avail. The error I get when trying to login is:

401 Error, Error: invalid_client

no application name


from_login=1
response_type=code
scope=https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
redirect_uri=http://www.glaciergaming.co.uk/kuo_glogin/index.php
access_type=online
approval_prompt=auto
as=254d36d6f131e400
pli=1
client_id=CLIENTID
authuser=1
hl=en

Any ideas?

Last edited by SPKuja (2014-09-30 14:58:13)

Offline

#12 2014-09-30 12:55:05

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 228
Website

Re: kuo_glogin: log in to Textpattern with Google account

You could try this trick:

  1. Go here
  2. Choose APIs & auth, then Consent screen
  3. Make sure you have some email address and something in the Product Name box

(Oh, and I’ve noticed that there could be a short delay, maybe couple minutes, if you choose to change settings in Developers Console.)

Last edited by kuopassa (2014-09-30 13:00:16)

Offline

Board footer

Powered by FluxBB