Quick Authentication
Posted by Brian Moon
|
Re: Quick Authentication March 02, 2007 03:19PM |
Admin Registered: 25 years ago Posts: 4,504 |
The version 5.1 of this script handles this by using $PHORUM["user"] instead of running the code. Now, if you are including this using auto_prepend, its getting included too early probably to make it all work right. I include_once mine in my main site header.php. If I have a script that needs it before that, I include it in that script using include_once, thus it is loaded before header.php
Brian - Personal Blog
|
Re: Quick Authentication April 05, 2007 06:24AM |
Registered: 19 years ago Posts: 1 |
|
Re: Quick Authentication April 05, 2007 06:43AM |
Admin Registered: 22 years ago Posts: 8,532 |
Any progress? I didn't know there was work in progress at all ;-) There are two mechanisms available in login.php for changing the page redirect.
1) Include a "redir" hidden field in your login form, which tells where Phorum must jump to after logging in.
2) There is a hook in the login.php script, which can be used to override the default redirect behavior. This is the "after_login" hook. See docs/creating_mods.txt for a description of that hook.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
1) Include a "redir" hidden field in your login form, which tells where Phorum must jump to after logging in.
2) There is a hook in the login.php script, which can be used to override the default redirect behavior. This is the "after_login" hook. See docs/creating_mods.txt for a description of that hook.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Quick Authentication February 06, 2008 12:09PM |
Registered: 22 years ago Posts: 166 |
|
Re: Quick Authentication February 06, 2008 12:15PM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Quick Authentication February 13, 2008 11:54AM |
Registered: 22 years ago Posts: 166 |
|
Re: Quick Authentication February 13, 2008 12:59PM |
Registered: 22 years ago Posts: 166 |
does this have a known problem if you login from an external page?
usingn the quick authentication i've got a page set up if logged in say "hey username", else display the login form.
when the user logs in from this form as a fresh login, it adds the phorum_v5_session onto the end of the url.
i think this causes problems when the user navigates the site between phorum and the quick auth pages.
it seems fine when the user logs in from phorum from fresh.
Edited 2 time(s). Last edit at 02/13/2008 02:04PM by artisites.
usingn the quick authentication i've got a page set up if logged in say "hey username", else display the login form.
when the user logs in from this form as a fresh login, it adds the phorum_v5_session onto the end of the url.
i think this causes problems when the user navigates the site between phorum and the quick auth pages.
it seems fine when the user logs in from phorum from fresh.
Edited 2 time(s). Last edit at 02/13/2008 02:04PM by artisites.
|
Re: Quick Authentication February 13, 2008 05:20PM |
Admin Registered: 22 years ago Posts: 8,532 |
You need to set the temporary cookie that is set by the standard login.php script too (search for setcookie in that script). The temporary cookie is used to determine whether the browser supports cookies. If it doesn't (meaning: if the login script doesn't see the temp cookie being set), then Phorum will fall back to URI authentication. This is what you saw on your site: the session id being added to all the URLs.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Quick Authentication February 14, 2008 06:29AM |
Registered: 22 years ago Posts: 166 |
|
Re: Quick Authentication February 14, 2008 07:09AM |
Admin Registered: 22 years ago Posts: 8,532 |
Quick authentication and external login are two different things. Quick authentication is to quickly see if a user is authorized in Phorum. External authentication is putting a login page up somewhere else on the site, outside the Phorum tree.
The only reason there is for getting session ids in the URL, is if the cookie is not set on login. Go to your login page and check your cookies to see if it's there (or tell us the URL where to look if this site is available in public).
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
The only reason there is for getting session ids in the URL, is if the cookie is not set on login. Go to your login page and check your cookies to see if it's there (or tell us the URL where to look if this site is available in public).
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Sorry, only registered users may post in this forum.

