Welcome Guest, Not a member yet? Register   Sign In
A3M - Account Authentication & Authorization Module
#21

[eluser]Peng Kong[/eluser]
you mean u needed to add ; behind the $email? i don't see how that helps but ok whatever works Smile

try logging in using google in my demo https://it.euphoriatwentythree.com/projects/a3m/

does it work? because it works for my on my but not on yours... so im suspecting server configuration.

what version of php are you using? if you're using 5.3 it doesn't work for sure but i know the fix.
#22

[eluser]Alexander Weps[/eluser]
[quote author="Peng Kong" date="1266568845"]you mean u needed to add ; behind the $email? i don't see how that helps but ok whatever works Smile

try logging in using google in my demo https://it.euphoriatwentythree.com/projects/a3m/

does it work? because it works for my on my but not on yours... so im suspecting server configuration.

what version of php are you using? if you're using 5.3 it doesn't work for sure but i know the fix.[/quote]

No no:
Code:
account/reset_password?email=
account/reset_password/&email;=
I need to change "?" to "/&", because else arguments are not recognizet as get (there are not in $_GET). The ";" must have been added by the forum (I don't have it in my code before posting).

Here you can see my server configuration:
Code:
http://stuff.shy.cz/phpinfo.php

Everything else in CodeIgniter works.

I ofcourse tried you demo, which worked.

Edit: Just ignore the ";" in first code, the bloody forum add it again.
#23

[eluser]Peng Kong[/eluser]
Ok that weird cause GET is after ? Usually... anyway.
So yep... sorry i didn't test on other server configs and imp developing on a windows machines. My server is a Linux machine of cause.

So your only problem is that google isn't working right?
Ok you gotta’ test if phpopenid package is working properly first.

Here’s how to do that:

1) Download http://openidenabled.com/files/php-openi...-2.1.3.zip
2) Extract it and upload it to your server
3) In the examples folder there is a file called detect.php
Simply run that file and see what is wrong.

oh duh ok... i think the reason is your cache/nonces cache/associations and cache/temp folders aren't writable? if that isn't the reason try the above 3 steps.
#24

[eluser]Alexander Weps[/eluser]
[quote author="Peng Kong" date="1266596645"]Ok that weird cause GET is after ? Usually... anyway.
So yep... sorry i didn't test on other server configs and imp developing on a windows machines. My server is a Linux machine of cause.
[/quote]

Yes, when I changed it, it works fine, don't know why the:
<code>
something/something?param=value
</code>
doesn't pass the value. If anybody knows I would be glad to know too. Smile

But
<code>
something/something/&param=value
</code>
works fine.

[quote author="Peng Kong" date="1266596645"]
So your only problem is that google isn't working right?
Ok you gotta’ test if phpopenid package is working properly first.

Here’s how to do that:

1) Download http://openidenabled.com/files/php-openi...-2.1.3.zip
2) Extract it and upload it to your server
3) In the examples folder there is a file called detect.php
Simply run that file and see what is wrong.

oh duh ok... i think the reason is your cache/nonces cache/associations and cache/temp folders aren't writable? if that isn't the reason try the above 3 steps.[/quote]

I checked cache folders before and they are writable. You can see detect.php on following link:
<code>
http://stuff.shy.cz/php-openid-2.1.3/exa...detect.php
</code>

Seems to be problem with:
HTTP Fetching
An HTTP request was completed. Got 503 instead of the expected HTTP status code (200 or 206). The redirected URL was not returned. Unexpected data was returned.

I'll be glad if you could look in to it.
#25

[eluser]Peng Kong[/eluser]
your server seems perfectly fine. that 503 thing isn't important i think. cuz my server has the exact same thing but it still works. oh.... SSL is your page using SSL. for google it's a must

ah yes im quite sure that's the problem... no https on your signin page which is a must for google. you openid should work if you try with chi.mp or myopenid or try with AOL or myspace
#26

[eluser]Alexander Weps[/eluser]
[quote author="Peng Kong" date="1266609226"]your server seems perfectly fine. that 503 thing isn't important i think. cuz my server has the exact same thing but it still works. oh.... SSL is your page using SSL. for google it's a must

ah yes im quite sure that's the problem... no https on your signin page which is a must for google. you openid should work if you try with chi.mp or myopenid or try with AOL or myspace[/quote]

Ok, I try switch SSL on and different account.

I would be best I some error or log message is generated about need of SSL.
#27

[eluser]Peng Kong[/eluser]
ok let me look into that. i think the reason there isn't error logs is cuz google doesn't say it fails cuz u aren't using ssl. but that's the reason if you go google or just play around with it.

i think Smile
#28

[eluser]Peng Kong[/eluser]
Hey all,

check out this update https://it.euphoriatwentythree.com/proje...nt/sign_in

1) Signin with...
Google,
Yahoo!,
AOL,
Twitter,
MySpace and other
OpenID Provider (tested with chi.mp and myopenid.com)

2) Connect with Facebook

--

Ok quick install instructions

1) Change .htaccess file
2) Application/config/config.php
change base_url
3) application/modules/account/config/facebook.php
application/modules/account/config/twitter.php
application/modules/account/config/recaptcha.php
change API keys
4) File permission
system/logs
system/cache/<all-3-folders>

hope i didnt miss anything gotta run! it's friday Smile
#29

[eluser]Peng Kong[/eluser]
just this week i tired to implement oauth for this module.
there really isn't any good help with oauth implement in PHP let alone CI.

but good news is i've finally managed to do it with http://code.google.com/p/oauth-php
(after having to painstakingly read line by line two oauth library =X)

working with just 1 controller and less then 200 lines of codes atm.
will be releasing it sometime next week!
#30

[eluser]gvillavizar[/eluser]
[quote author="Peng Kong" date="1267801345"]just this week i tired to implement oauth for this module.
there really isn't any good help with oauth implement in PHP let alone CI.

but good news is i've finally managed to do it with http://code.google.com/p/oauth-php
(after having to painstakingly read line by line two oauth library =X)

working with just 1 controller and less then 200 lines of codes atm.
will be releasing it sometime next week![/quote]

Great! I am waiting for that! Keep up the good work!




Theme © iAndrew 2016 - Forum software by © MyBB