•  » Extensions
  •  » [resolved] oAuth and Facebook nearly working

#1 2013-07-06 14:52:06

otherwayup
Member
2012-01-23
27

[resolved] oAuth and Facebook nearly working

Hi,

I installed oAuth
Registered as developer on facebook
Created the app
Disabled sandbox mode for the app
Copied details to the oAuth config page
Clicked on Facebook icon on my gallery and it opened window to Register a user with my facebook developer username, which I did.
I got an email from gallery to the facebook user email address confirming registration.
The user is in user list.

But I am stuck in registration stage and cannot login this user.

I cleared all cookies etc and click on Facebook icon, enter facebook email address and password but instead of logging in I just get gallery user registration page with facebook username filled in and message at top saying "Your registration is almost done, please complete the registration form."

If I try and type facebook user name and password in normal gallery login area it says Invalid Password

Any ideas?

Offline

 

#2 2013-07-06 16:17:20

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

the aim of oAuth is to not provide any credential to the website so your last try is a nonsense :)

a simple question : did you validated the register page ?
personnaly it works well (test: http://www.strangeplanet.fr/piwigo-test/)

and give the url of your website

Offline

 

#3 2013-07-06 22:58:49

otherwayup
Member
2012-01-23
27

Re: [resolved] oAuth and Facebook nearly working

mistic100 wrote:

a simple question : did you validated the register page ?

Yes.

I just tried again with another facebook username with same result.

When you try and log-in with a new facebook user the gallery goes to the registration page.

After typing the validation code I got a Succesful Registration message and the user is logged in, BUT if you log out and try and log in again you go the registration page again.  If you try and register the user again it says the login and email address are already in use.

Last edited by otherwayup (2013-07-06 23:15:08)

Offline

 

#4 2013-07-06 23:04:13

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

when you are one the register page after the first login, you must validate the form in order to be actually registered

Offline

 

#5 2013-07-06 23:16:10

otherwayup
Member
2012-01-23
27

Re: [resolved] oAuth and Facebook nearly working

edited my previous reply, see above.

Gallery URL is howletts.  otherwayup.  net

Also, tried your test site and got following error when the facebook window opened.

Error...
Authentication canceled

Question: I didn't select any Hosting of the facebook App.  SHould I have done?

Thanks,

Last edited by otherwayup (2013-07-06 23:24:44)

Offline

 

#6 2013-07-06 23:27:43

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

can you access your database with phpMyAdmin ang give the content of the piwigo_users table (remove the emails)

Answer: no

look, I don't know the mechanisms used to anthenticate, so it's very hard to correct, I absolutely don't know why it doesn't work on my website

Offline

 

#7 2013-07-06 23:37:06

otherwayup
Member
2012-01-23
27

Re: [resolved] oAuth and Facebook nearly working

id    username    password    mail_address    oauth_id
21    Damien Sorel    $P$GLY4J.4w1z/23wEiNBw1c7opHfc45j/        NULL

I've removed email address and only shown your id info.

Offline

 

#8 2013-07-06 23:50:55

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

I think I figured it out : it seems to be a conflict with Crypto Captcha
will try to find why, and a workaround

Offline

 

#9 2013-07-07 00:01:31

otherwayup
Member
2012-01-23
27

Re: [resolved] oAuth and Facebook nearly working

Thanks, I appreciate your help with this.

Offline

 

#10 2013-07-07 00:18:11

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

version 1.0.2 should fix it

Offline

 

#11 2013-07-07 00:53:34

otherwayup
Member
2012-01-23
27

Re: [resolved] oAuth and Facebook nearly working

Yep, works now.  Many thanks.

Offline

 

#12 2013-07-16 21:54:55

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: [resolved] oAuth and Facebook nearly working

v4r4n1 wrote:

they can't see anything, if I give them the direct link they get an error message, that they are not allowed to see the page.
"Error...sie sind nicht berechtigt diese seite aufzurufen"

thay can't see what ? you gave the link to chat ? which page ? can you translate this error ?

and you please open a new thread, this one is resolved

Offline

 
  •  » Extensions
  •  » [resolved] oAuth and Facebook nearly working

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact