Subject: Developers of Sympa
List archive
- From: Olivier Salaün - CRU <address@concealed>
- To: John-Paul Robinson <address@concealed>
- Cc: address@concealed
- Subject: Re: [sympa-dev] action sequence in parsed url
- Date: Tue, 26 Apr 2005 15:58:09 +0200
|
Hi John-Paul, John-Paul Robinson wrote: I think I understand this better now. On Tue, 26 Apr 2005, John-Paul Robinson wrote:
get_parameters() does the magic (with help from %action_args and %in_regex).Exactly.
In this case sso_login is the action and the remain 3 components of the path are arguments to sso_login as defined by %action_args. In get_parameters these arguments are assigned:
$in{'auth_service_name'} = "service_id"
$in{'previous_action'} = "sso_login_succeeded"
$in{'previous_list'} = "service_id"
Actually it appears that the previous action is never used when using
'generic_sso', because of the 'return home'. We should have a "return
$in{'previous_action'} || 'home' " instead(I'm a little confused on the choice of the "previous_" prefix for the argument names rather than "next_")It is confusing. The name of this parameter was related to our first needs : keeping track of the previous action while performing authentication, so as to return to the desired page eventually.
Maybe I could add argument definitions to %action_args for sso_login, though I'm not sure how it would deal with optional arguments.Here is how you could add this feature I name here "collect_email" :
I mentionned "collect_email" but "request_email" is just fine.The receip below allows to have a single action+template for the whole process but you can separate "request_email" and "validate_email" if you wish. Both methods are used in wwsympa.fcgi. Let me know if my explanation are unclear or uncomplete. |
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-
[sympa-dev] action sequence in parsed url,
John-Paul Robinson, 04/26/2005
-
Re: [sympa-dev] action sequence in parsed url,
John-Paul Robinson, 04/26/2005
- Re: [sympa-dev] action sequence in parsed url, Olivier Salaün - CRU, 04/26/2005
-
Re: [sympa-dev] action sequence in parsed url,
John-Paul Robinson, 04/26/2005
Archive powered by MHonArc 2.6.19+.