CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • v3.0 Standalone with Google OpenID issue
Pages: [1]

Author Topic: v3.0 Standalone with Google OpenID issue  (Read 3505 times)

bwaindwain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
v3.0 Standalone with Google OpenID issue
October 09, 2009, 01:41:42 pm
I've been struggling for hours trying to get the standalone working with more than one user. The installation went fine and I could login with my first (admin) account using my google openid. Then I created another dummy google account to use for my second civicrm user. I created the contact in civicrm, gave it the google openid url, clicked "allowed to login" and added the contact to the administrators group. But the login would fail with the error "You are not allowed to login".

Finally, I gave up on google and created a dummy myopenid.com account and now the login works. Now I can create additional users that can login in.

Maybe this will help someone out there.


bwaindwain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: v3.0 Standalone with Google OpenID issue
October 09, 2009, 02:37:15 pm
Seems to have something to do with the google openid url. My first (admin) account has an openid url of https://www.google.com/accounts/o8/id?id=AItOawnc0h....... Somehow the CiviCRM install script got this big long code into the database. But for the additional users I was putting http://google.com/accounts/o8/id as the openid url.

I'm guessing that I need to determine that big long code for the other google openids I want to use. Does anyone know how to find the code?


Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: v3.0 Standalone with Google OpenID issue
October 09, 2009, 03:15:41 pm

check:

http://forum.civicrm.org/index.php/topic,6664.msg30843.html#msg30843

i suspect this is still an issue. I'll ask wes to upgrade the JanRain openid packages for 3.1

all of the openid related code should be in standalone and under packages/Auth/OpenID

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

afelton

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
Re: v3.0 Standalone with Google OpenID issue
October 23, 2009, 11:41:48 am
I am having this problem too.  The initial id was able to set up correctly but I can't manage to log in under any others.  I have tried using Google and Yahoo openids.  For Google, I tried entering both http://google.com/accounts/o8/id and the actual long Google openid address (which I managed to figure out from another site).  The allow login box was checked, the ACL permissions looked ok, etc.  Couldn't get it to work with Yahoo either.  I get the "Login failed" page every time.  Hopefully this can be fixed soon as I just started using CiviCRM and really like it but need to be able to create other ids that can log in as well.  Thanks!

bwaindwain

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
Re: v3.0 Standalone with Google OpenID issue
October 23, 2009, 11:50:35 am
The big, long code for google openid is unique to the site that you're logging in to. So, if you're taking the code from one site and using it to authenticate at another, I don't think it will work.

see http://code.google.com/apis/accounts/docs/OpenID.html scroll down to "Request authentication response"

cap10morgan

  • I post occasionally
  • **
  • Posts: 56
  • Karma: 9
Re: v3.0 Standalone with Google OpenID issue
October 23, 2009, 12:14:14 pm
This doesn't work in 3.0. You can't use Google OpenIDs for more than one account (and I'd be very cautious before using it for any of them). This is because Google (and others, like Yahoo) use OpenID a little differently than providers like myopenid.com. The issue is that you don't get a unique URL for your OpenID endpoint, but a shared URL where you authenticate your Google / Yahoo / etc. account.

Here's the bug report for it: http://issues.civicrm.org/jira/browse/CRM-5131

I'm working on fixing this for 3.1, but could use some help if anyone wants to work on it. We basically need to replace the existing workflow for creating new users (i.e., create contact, enter OpenID URL, check allowed to login) with a new one that goes something like this:

1. Have new user attempt to login to your CiviCRM instance. CiviCRM should deny the login but ask if they'd like to request a new login. If they click on the request new login option, save their OpenID credentials, especially the endpoint URL, claimed ID, and display ID returned by it (assuming they successfully authenticated w/ their OpenID provider), and go to step 2. Also provide the OpenID dropdown / input box here for folks who just need to try again.
2. Send a message to the administrators group saying a user has requested access to the system. Refer to them by their display ID and give the admins a link they can go to to approve or reject the login request.
3. If approved by an admin, require the admin to complete a basic profile for the new user, at the very least e-mail address. Then e-mail the new user at that address letting them know their login request has been approved and link back to the CiviCRM login page.
4. If not approved by an admin, just drop everything.

Anyone have time to help me put that together?

koensayr

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: v3.0 Standalone with Google OpenID issue
March 02, 2010, 04:51:28 pm
Hi There,

I'm having this exact same issue with 3.1.3 as well. I couldn't figure out where to get a new user's OpenID Google URL. Instead they've just been using their AIM account. There is mention in here about an update for 3.0, but I'm already running 3.1.3. Any thoughts or guidance would be *very* helpful.

-Josh

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: v3.0 Standalone with Google OpenID issue
March 02, 2010, 04:56:41 pm

this has not been fixed for 3.1 either. If you'd like to help fix and address this issue that would be great. Check:

http://civicrm.org/blogs/lobo/dropping-support-civicrm-standalone-v32

Would be great for a group of folks to step up and become the maintainers of the standalone project

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

koensayr

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
Re: v3.0 Standalone with Google OpenID issue
March 02, 2010, 04:59:11 pm
I'm all for helping develop, but I'm brand new to Civi. I've been already reading up on the artictecture.

I'm also interested to read about the pros versus cons of using Civi with Drupal. Other then the user management what does it really give you? Our 5013c already has a nice website so Drupal's other CMS features don't really seem valuable (unless I'm missing something). Can you point me in the right direction?

Also, nobody home in the IRC channel today :-P

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: v3.0 Standalone with Google OpenID issue
March 02, 2010, 05:13:55 pm
* User management / granular permissioning to various CiviCRM features.
* Exposing 'themed' constituent-facing interfaces for online contributions, event registration, membership signup and renewal, other data collection / updating via profiles.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • v3.0 Standalone with Google OpenID issue

This forum was archived on 2017-11-26.