Skip to content
Snippets Groups Projects
Commit 28c12a56 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Merge branch 'master' of github.com:simplesamlphp/simplesamlphp

# By Matt Schwager (1) and Nicholas Amon (1)
# Via Jaime Pérez Crespo (2) and Matt Schwager (1)
* 'master' of github.com:simplesamlphp/simplesamlphp:
  Added documentation for AttributeCopy authentication processing filter.
  Bug fix to include the subject nameid in the data returned from a SAML 1.0 SSO authentication.
parents b20fa795 b8ae7841
No related branches found
No related tags found
No related merge requests found
...@@ -128,6 +128,7 @@ The following filters are included in the simpleSAMLphp distribution: ...@@ -128,6 +128,7 @@ The following filters are included in the simpleSAMLphp distribution:
- [`authorize:Authorize`](./authorize:authorize): Access control based on regular expressions. - [`authorize:Authorize`](./authorize:authorize): Access control based on regular expressions.
- [`consent:Consent`](./consent:consent): Ask the user for consent before transmitting attributes. - [`consent:Consent`](./consent:consent): Ask the user for consent before transmitting attributes.
- [`core:AttributeAdd`](./core:authproc_attributeadd): Add attributes to the response. - [`core:AttributeAdd`](./core:authproc_attributeadd): Add attributes to the response.
- [`core:AttributeCopy`](./core:authproc_attributecopy): Copy existing attributes to the response.
- [`core:AttributeAlter`](./core:authproc_attributealter): Do search-and-replace on attributevalues. - [`core:AttributeAlter`](./core:authproc_attributealter): Do search-and-replace on attributevalues.
- [`core:AttributeLimit`](./core:authproc_attributelimit): Limit the attributes in the response. - [`core:AttributeLimit`](./core:authproc_attributelimit): Limit the attributes in the response.
- [`core:AttributeMap`](./core:authproc_attributemap): Change the name of the attributes. - [`core:AttributeMap`](./core:authproc_attributemap): Change the name of the attributes.
......
...@@ -98,7 +98,7 @@ class SimpleSAML_Auth_Default { ...@@ -98,7 +98,7 @@ class SimpleSAML_Auth_Default {
} }
/* Add those that should always be included. */ /* Add those that should always be included. */
foreach (array('Attributes', 'Expire', 'LogoutState', 'AuthnInstant', 'RememberMe') as $a) { foreach (array('Attributes', 'Expire', 'LogoutState', 'AuthnInstant', 'RememberMe', 'saml:sp:NameID') as $a) {
if (isset($state[$a])) { if (isset($state[$a])) {
$persistentAuthState[$a] = $state[$a]; $persistentAuthState[$a] = $state[$a];
} }
......
`core:AttributeCopy`
===================
Filter that renames attributes.
Examples
--------
Copy a single attribute (user's uid will be copied to the user's username):
'authproc' => array(
50 => array(
'class' => 'core:AttributeCopy',
'uid' => 'username',
),
),
...@@ -81,5 +81,7 @@ $logoutState = array( ...@@ -81,5 +81,7 @@ $logoutState = array(
); );
$state['LogoutState'] = $logoutState; $state['LogoutState'] = $logoutState;
$state['saml:sp:NameID'] = $response->getNameID();
$source->handleResponse($state, $responseIssuer, $attributes); $source->handleResponse($state, $responseIssuer, $attributes);
assert('FALSE'); assert('FALSE');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment