summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix commit 140: error in the merge statement for authn_context_class_ref ↵benjamin.dauvergne2012-06-281-1/+1
| | | | | | configuration variable git-svn-id: https://modmellon.googlecode.com/svn/trunk@158 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add support for double-quoted cookie values.olavmrk2012-05-141-0/+10
| | | | | | JMeter may apparently use this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@157 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Version 0.5.0olavmrk2012-04-162-1/+7
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@156 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Update NEWS-file for version 0.5.0.olavmrk2012-04-161-2/+22
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@155 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Deprecate «MellonDecoder "feide"»olavmrk2012-04-121-4/+3
| | | | | | | This attribute encoding has not been required since Moria3, which was shut down in July 2010. This value should therefore no longer be used. git-svn-id: https://modmellon.googlecode.com/svn/trunk@154 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add directive MellonSubjectConfirmationDataAddressCheckbenjamin.dauvergne2012-02-174-1/+41
| | | | | | | | | MellonSubjectConfirmationDataAddressCheck allows to block client address checking as given in IdP assertion in the SubjectConfirmationData node, it can be necessary when client and IdP or SP are in a NAT-ed network or when the SP is behind a reverse proxy. git-svn-id: https://modmellon.googlecode.com/svn/trunk@152 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Support for HTTP-POST SingleSignOnService endpoint.olavmrk2012-01-121-31/+146
| | | | | | | This patch extends mod_mellon with support for sending authentication requests with the HTTP-POST binding. git-svn-id: https://modmellon.googlecode.com/svn/trunk@151 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Always redirect to the login URL when starting authentication.olavmrk2012-01-121-1/+13
| | | | | | | | We cannot display any pages from the am_start_auth()-function since it runs from the access checker. We therefore need to redirect to the login handler, which can then display web pages. git-svn-id: https://modmellon.googlecode.com/svn/trunk@150 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Split am_auth_new_ticket() into am_handle_auth() and am_start_auth().olavmrk2012-01-121-9/+42
| | | | | | | | | | | | | | | | | | | The code in am_auth_new_ticket() was shared between the "auth" endpoint and the code to start authentication from other requests. This results in the possibility of unpredictable interactions between those functions. For example, it was possible to select the IdP from a random page by adding the "IdP" parameter. The "ReturnTo" parameter could also affect where the user was sent after authentication. The result of this change is two new functions, one for starting authentication from other requests, and one for handling the "auth" endpoint. The "auth"-endpoint is no longer used by code, but may be used elsewhere. It is therefore included for backwards compatibility. git-svn-id: https://modmellon.googlecode.com/svn/trunk@149 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Extract am_start_disco() from am_auth_new_ticket().olavmrk2012-01-121-32/+49
| | | | | | | | In preparation of splitting am_auth_new_ticket() into two functions, extract the code to redirect to the discovery service into its own function. git-svn-id: https://modmellon.googlecode.com/svn/trunk@148 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Move discovery response endpoint to "login" instead of "auth".olavmrk2012-01-121-1/+1
| | | | | | | | We now have a "login" endpoint that can be used for triggering authentication. Make the discovery service send its response to that page. git-svn-id: https://modmellon.googlecode.com/svn/trunk@147 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Fix entityID sent to discovery service.olavmrk2012-01-121-2/+11
| | | | | | | | We assumed that the SP entityID was always the endpoint path followed by "metadata". This does not need to be the case. This patch changes it to fetch the SP entityID from the SP metadata. git-svn-id: https://modmellon.googlecode.com/svn/trunk@146 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Do not set headers twice.olavmrk2012-01-122-14/+4
| | | | | | | | | | For historic reasons, we added several headers to both "headers_out" and "err_headers_out". This has the unfortunate side effect of sending the headers twice. This change modifies the code to only add those headers to "err_headers_out", which is sent both for successful requests and for errors. git-svn-id: https://modmellon.googlecode.com/svn/trunk@145 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Merge am_endpoint_handler() and am_handler().olavmrk2012-01-121-68/+33
| | | | | | | | | | | We currently handle requests to many endpoints from the access control hooks. This change bypasses access control in those cases, and handles the requests from the "handler" hook instead. This change is necessary to be able to do anything else than redirects from the handlers. As a side effect, it also simplifies the code. git-svn-id: https://modmellon.googlecode.com/svn/trunk@144 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Compatibility with older versions of the apr library.olavmrk2011-12-141-1/+3
| | | | | | | | | The APR_ARRAY_PUSH() macro was recently added to apr. Instead of using it, just use apr_array_push(). Thanks to Benjamin Dauver for providing this patch! git-svn-id: https://modmellon.googlecode.com/svn/trunk@143 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Initialize AuthnRequest with asked AuthnContextClassRef if neededolavmrk2011-12-071-0/+24
| | | | | | Thanks to Benjamin Dauvergne for implementing this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@142 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add checking for AuthContextClassRefolavmrk2011-12-071-0/+60
| | | | | | | | | | | - If request miss needed elements AuthnStatement or AuthnContext, HTTP status BadRequest is returned. - If request does not match one of the required AuthnContextClassRef, HTTP status Forbidden is returned. Thanks to Benjamin Dauvergne for implementing this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@141 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add MellonAutnContextClassRef to configuration directivesolavmrk2011-12-073-0/+55
| | | | | | | | | | | You can list many class refs they will be concatenated inside an array. Beware that in each directory, if there is any MellonAuthnContextClassRef directive, any settings from the previous level is overwritten. Thanks to Benjamin Dauvergne for implementing this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@140 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Honour MellonProbeDiscoveryIdP order when sending probesmanu@netbsd.org2011-12-054-59/+128
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@139 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Check for version 2.14 of GLib.olavmrk2011-09-231-0/+3
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@138 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Avoid dependency on GLib 2.16.olavmrk2011-09-231-7/+14
| | | | | | | | | | We used GHashTableIter, which wasn't introduced before version 2.16 of GLib. This patch changes the code to simply use g_hash_table_get_keys instead. (This means that we depend on GLib 2.14.) git-svn-id: https://modmellon.googlecode.com/svn/trunk@137 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Avoid using APR_ARRAY_IDX.olavmrk2011-05-181-1/+1
| | | | | | | APR_ARRAY_IDX is a relatively new macro in the APR package, so we should avoid using it. git-svn-id: https://modmellon.googlecode.com/svn/trunk@134 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Version 0.4.0.olavmrk2011-05-182-1/+7
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@132 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Update news for version 0.4.0.olavmrk2011-05-181-1/+10
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@131 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add support for inheriting lasso_server objects.olavmrk2011-05-183-6/+52
| | | | | | | | | | | Change configuration to inherit the lasso_server objects when nothing affecting the lasso_server object changes from the parent configuration object. This should speed up processing of requests where you have request-specific configuration changes, such as access control rules. git-svn-id: https://modmellon.googlecode.com/svn/trunk@130 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add support for loading federation metadata files.olavmrk2011-05-185-44/+176
| | | | | | Patch originally created by Emmanuel Dreyfus, some changes by me. git-svn-id: https://modmellon.googlecode.com/svn/trunk@129 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Remove unused function am_get_provider_id().olavmrk2011-05-181-60/+0
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@128 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change am_server_add_providers to return number of providers from ↵olavmrk2011-05-181-5/+2
| | | | | | LassoServer object. git-svn-id: https://modmellon.googlecode.com/svn/trunk@127 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change cfg->idp_metadata_files to an array instead of an hash.olavmrk2011-05-183-29/+15
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@126 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change am_handle_probe_discovery() to use providers from LassoServer.olavmrk2011-05-181-8/+10
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@125 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change am_get_idp() to use providers from LassoServer.olavmrk2011-05-181-8/+7
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@124 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change am_first_idp() to retrieve the entityID from the LassoServer object.olavmrk2011-05-181-10/+10
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@123 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Move am_get_idp() and am_first_idp() to after am_get_lasso_server().olavmrk2011-05-181-84/+86
| | | | | | This is in preparation of using am_get_lasso_server from those functions. git-svn-id: https://modmellon.googlecode.com/svn/trunk@122 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Unbreak logout for lasso version >= 2.3.0benjamin.dauvergne2011-05-041-28/+31
| | | | | | | | | | | Lasso initializes the SessionIndex attribute of LogoutRequest message itself since release 2.3.4 and directly remove the related assertions since 2.3.0, so the old way to initialize the SessionIndex cannot work anymore. Between version 2.3.0 and 2.3.4 it just cannot work at all but it is better to send a broken logout request missing the SessionIndex attribute than to raise a segmentation fault. git-svn-id: https://modmellon.googlecode.com/svn/trunk@121 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Add MellonCookieDomain and MellonCookiePath directivesbenjamin.dauvergne2011-04-074-4/+53
| | | | | | | | | | These allows respectively to set the domain and the path of the domain of the mellon cookie. Without these the domain defaults to the domain return by ap_get_server_name() (see http://httpd.apache.org/dev/apidoc/apidoc_ap_get_server_name.html) and the path to "/". git-svn-id: https://modmellon.googlecode.com/svn/trunk@120 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Makefile: Fix invocation of apxs.olavmrk2011-03-301-1/+1
| | | | | | | New versions of apxs requires the use of -Wc and -Wl for passing flags to the compiler and linker. git-svn-id: https://modmellon.googlecode.com/svn/trunk@119 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Fix leak of lasso_server objects.olavmrk2011-03-301-0/+27
| | | | | | | Unfortunately, the lasso_server objects were never destroyed, which led to a memory leak when using request-specific configuration. git-svn-id: https://modmellon.googlecode.com/svn/trunk@118 a716ebb1-153a-0410-b759-cfb97c6a1b53
* New MellonIdPMetadataGlob directive to load mulitple IdP metadatamanu@netbsd.org2011-03-235-0/+90
| | | | | | | using a glob(3) pattern. git-svn-id: https://modmellon.googlecode.com/svn/trunk@117 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Regexp backreference substitution in MellonCond manu@netbsd.org2011-03-224-54/+313
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@116 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Properly terminate parameter list for apr_pstrcat.olavmrk2011-03-181-1/+1
| | | | | | | | On 64-bit, "0" is an 32-bit integer while the parameter list should be terminated by a 64-bit NULL pointer. Change the parameter to NULL to avoid possible misbehaviour due to this. git-svn-id: https://modmellon.googlecode.com/svn/trunk@115 a716ebb1-153a-0410-b759-cfb97c6a1b53
* New MellonCond directive to enable attribute filtering beyond MellonRequire manu@netbsd.org2011-03-175-57/+335
| | | | | | | | | functionalities. Supports regexp, negations, and attribute name remapping though MellonSetEnv git-svn-id: https://modmellon.googlecode.com/svn/trunk@114 a716ebb1-153a-0410-b759-cfb97c6a1b53
* A /mellon/probeDisco endpoint replaces the builtin:get-metadata IdP manu@netbsd.org2011-03-095-86/+282
| | | | | | | | dicovery URL scheme. It is configured using the MellonProbeDiscoveryTimeout and MellonProbeDiscoveryIdP directives. git-svn-id: https://modmellon.googlecode.com/svn/trunk@113 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Allow MellonUser variable to be translated through MellonSetEnvmanu@netbsd.org2011-03-022-13/+24
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@112 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Fix references to MellonPostDirectory in README and in a comment.olavmrk2011-02-182-7/+8
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@111 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Change implementation of am_get_endpoint_url to use ap_construct_urlbenjamin.dauvergne2010-10-211-24/+1
| | | | | | | | | | | ap_construct_url() use the ServerName directive to reconstruct an absolute URL. It allows to force the use of an https:// URL (when you are behind an SSL proxy it is needed) by configuring your VirtualHost like that: ServerName https://example.com git-svn-id: https://modmellon.googlecode.com/svn/trunk@110 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Report the received Recipient for error on SubjectConfirmationDatabenjamin.dauvergne2010-09-281-2/+2
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@109 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Fix error for query string starting characterbenjamin.dauvergne2010-09-281-1/+5
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@108 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Fix segfault when no assertion is foundbenjamin.dauvergne2010-09-281-3/+5
| | | | git-svn-id: https://modmellon.googlecode.com/svn/trunk@107 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Remove compiler warningbenjamin.dauvergne2010-09-281-4/+3
| | | | | | | Those unused variable are only used by one branch of the preprocessor conditional. git-svn-id: https://modmellon.googlecode.com/svn/trunk@106 a716ebb1-153a-0410-b759-cfb97c6a1b53
* Improve formatting of metadatas, fix endpointsbenjamin.dauvergne2010-09-281-29/+28
| | | | | | | | | - NameIdManagement endpoint is incorrectly listed (and useless if only transient federation are expected). - an HTTP-Artifact endpoint for the AssertionConsumerService was added, letting HTTP-Post as the default binding. git-svn-id: https://modmellon.googlecode.com/svn/trunk@105 a716ebb1-153a-0410-b759-cfb97c6a1b53