2017 © Pedro Peláez
 

simplesamlphp-module simplesamlphp-module-entattribs

SimpleSAMLphp module to convert entity attributes from metadata into attributes

image

safire-ac-za/simplesamlphp-module-entattribs

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  • Wednesday, March 21, 2018
  • by safire-ac-za
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

This SimpleSAMLphp auth proc filter allows you to provides additional attributes from based on entity attributes in metadata. It is useful when entity metadata contains definitive information that you wish to convert into a SAML attribute (e.g. an entity attribute containing the value that should be used for schacHomeOrganization in remote IdP metadata)., (*1)

Installation

Once you have installed SimpleSAMLphp, installing this module is very simple. Just execute the following command in the root of your SimpleSAMLphp installation:, (*2)

composer.phar require safire-ac-za/simplesamlphp-module-entattribs:dev-master

where dev-master instructs Composer to install the master (development) branch from the Git repository. See the releases available if you want to use a stable version of the module, (*3)

Usage

This module provides the entattribs:AttributeFromEntity auth proc filter, which can be used as follows:, (*4)

50 => [
    'class'     => 'entattribs:AttributeFromEntity',
    '%replace',
    'urn:x-example:schacHomeOrganization' => 'schacHomeOrganization',
    'urn:x-example:schacHomeOrganizationType' => 'schacHomeOrganizationType',
],

Where the parameters are as follows:, (*5)

  • class - the name of the class, must be entattribs:AttributeFromEntity, (*6)

  • %replace - replace the values of any existing SAML attributes with those from the entity attributes. (Default is to create a multi-valued attribute unless %ignore is set.), (*7)

  • %ignore - ignore any SAML attributes that already exist. (Default is to create a multi-valued attribute unless %replace is set.), (*8)

  • %skipsource - do not look in the source metadata for entity attributes. (default is to check source metadata.), (*9)

  • %skipdest - do not look in the destination metadata for entity attributes. (default is to check destination metadata.), (*10)

Any remaining key/value pairs are used to form a map between the entity attribute name (key) and the corresponding SAML attribute name to use (value)., (*11)

The parameters %replace and %ignore are intended to be mutually exclusive and using them together will generate a warning., (*12)

Example

If the above filter were applied following remote IdP metadata:, (*13)

$metadata['https://idp.example.org/idp/shibboleth'] = [
    /* ... */
    'EntityAttributes' => [
        'urn:x-example:schacHomeOrganization' => 'example.org',
        'urn:x-example:schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:other',
    ],
    /* ... */
];

it would result in the following attributes:, (*14)

$attributes = [
    'schacHomeOrganization' => 'example.org',
    'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:other',
];

and any existing values of those two attributes would have been lost/replaced., (*15)

The Versions

21/03 2018

dev-master

9999999-dev

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

MIT

The Requires

 

The Development Requires

27/02 2018

v1.4

1.4.0.0

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

MIT

The Requires

 

15/06 2017

v1.3

1.3.0.0

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

MIT

The Requires

 

23/08 2016

v1.2

1.2.0.0

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

MIT

The Requires

 

21/07 2016

v1.1

1.1.0.0

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

MIT

The Requires

 

28/06 2016

v1.0

1.0.0.0

SimpleSAMLphp module to convert entity attributes from metadata into attributes

  Sources   Download

BSD-2-Clause

The Requires

 

by Guy Antony Halse