diff options
author | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2008-11-11 20:07:44 +0000 |
---|---|---|
committer | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2008-11-11 20:07:44 +0000 |
commit | 421b8190becaba693ff76dfa6f61978576e27151 (patch) | |
tree | 733e64bd91d21063c36ec64ded6d350ba4f1bc6b /auth_mellon_handler.c | |
parent | e8069a282501ffda569d1f84c669d285400b12b1 (diff) | |
download | mod_auth_mellon-421b8190becaba693ff76dfa6f61978576e27151.tar.gz mod_auth_mellon-421b8190becaba693ff76dfa6f61978576e27151.tar.xz mod_auth_mellon-421b8190becaba693ff76dfa6f61978576e27151.zip |
Add MellonDefaultLoginPath option.
This option is used to decide which page the user should be
redirected to if IdP-initiated SSO is used.
Thanks to Emmanuel Dreyfus for this patch.
git-svn-id: https://modmellon.googlecode.com/svn/trunk@36 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'auth_mellon_handler.c')
-rw-r--r-- | auth_mellon_handler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth_mellon_handler.c b/auth_mellon_handler.c index 9f57e1e..26bc0ce 100644 --- a/auth_mellon_handler.c +++ b/auth_mellon_handler.c @@ -1046,11 +1046,11 @@ static int am_handle_reply_common(request_rec *r, LassoLogin *login, lasso_login_destroy(login); - /* No RelayState - we don't know what to do. */ + /* No RelayState - we don't know what to do. Use default login path. */ if(relay_state == NULL) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, - "RelayState wasn't included in reply from IdP."); - return HTTP_INTERNAL_SERVER_ERROR; + dir_cfg = am_get_dir_cfg(r); + apr_table_setn(r->headers_out, "Location", dir_cfg->login_path); + return HTTP_SEE_OTHER; } rc = am_urldecode(relay_state); |