Authentication and login using Eventbrite Api

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Techbot's picture

Hi all,

The site I'm currently building requires all registered members to also attend a conference.

So I was thinking of using eventbrite. But more than that I was hoping that I could use eventbrites api to authenticate users, so they would only have to register with eventbrite and not with the drupal site. I would then use a logi n with eventbrite for daily use (similar to login with facebook , twitter etc).

Has anyone any experience with bypassing the drupal authentication, does this sound feasable?

thanks
Rob

Comments

alternatives

conorc's picture

Hi Rob,

have you discounted COD for event registration?
http://drupal.org/project/cod

I'd tried out OpenID with one project and it was pretty fiddly, otherwise maybe OAuth might help?

Conor

thanks for the tip Conor, I

Techbot's picture

thanks for the tip Conor,

I like distributions, so I'll play with that for a few hours and see what it offers.

I'm particularaly interested in Oauth, simply because I've come across it before,( and it is the first thing mentioned on the eventbrite php api pages.)

https://github.com/ryanjarvinen/eventbrite.php

I'll post an update in a day or two.

Hi finally got back to this

Techbot's picture

Hi finally got back to this part of the project.

It's been a maze of modules Connector, OAuth Connector, Connector Action Default Register Form,OAuth,OAuth2, not oauth common :-), and OAuth Authentication

So far I have not used the php api code on eventbrite's github page.

I 've gotten the furthest with connector http://drupal.org/project/connector and it's oauth implementation http://drupal.org/project/oauthconnector

The description in the backend is:

Provides base functionality for one-click login with eg. Facebook Connect and Twitter Connect

:sounds exactly right to me . So with a lot of trial and error and some help from tech support from eventbrite : I can send the request and get back a token and thus the application is authorised. (I needed eventbrite's help because I was not filling in the Authorization endpoint and Access token endpoint as they were buried in the advanced settings which I thought I could leave alone for initial attempts.)

So now the app (my drupal site?) is authorised but I don't seem to be logged in, nor do I see any additional user account set up in the backend.

In the words of the developer: (http://blogs.goodold.se/tech/2010/08/22/first-alpha-of-oauth-connector-r...)

'The Connector module exposes the connectors as buttons in a block. When signing in through one for the first time it creates a user which name and avatar is imported and later kept in sync.'

Any ideas as to why I'm not seeing a new user being created via eventbrite? I've created a user (not the website owner aka event organiser) for this purpose.

Hi All, I've put up a site

Techbot's picture

Hi All,
I've put up a site here www.mrjigs.com , if anyone is interested.

I've added three more oauth providers just for comparisons sake (and to get some more practice in ) Facebook, Google and Twitter. All with failed results.

Unfortunatley the COD Drupal distribution method is to take care of the event management itself but I don't have that option.

thanks
Rob

Request for comments (not solutions)

Techbot's picture

Hi All,
based on the issues log here
https://drupal.org/project/issues/oauthconnector?categories=All

and direct responses from
a) the orignal developer
b) Katrina one of the orginal issues posters
c) Ryan Szrama

I am now convinced that this module simply does not work. This is terribly dissapointing.
Notice how the various issues relate to a single provider eg facebook or google or twitter. This does nothing more than confuse the issue. I get the same issues using a completely different provider. (I have also tried all three of the above to no avail)

Notice how the various patches and solutions are mundane and trivial, if not downright dangerous eg "turn off ssl", being the only security measure for oauth2 (or so i'm led to believe.)

Is this normal?
I dislike ambiquity more than I dislike something not working.

Any comments?

Ireland

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week