2017 © Pedro PelĂĄez
 

library saml2

SAML2 PHP library from SimpleSAMLphp

image

temp/saml2

SAML2 PHP library from SimpleSAMLphp

  • Monday, March 17, 2014
  • by rmahoney-bsd
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 95 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

SimpleSAMLphp SAML2 library Build Status

A PHP library for SAML2 related functionality. Extracted from SimpleSAMLphp, used by OpenConext. This library is a collaboration between UNINETT and SURFnet., (*1)

Before you use it

DO NOT USE THIS LIBRARY UNLESS YOU ARE INTIMATELY FAMILIAR WITH THE SAML2 SPECIFICATION., (*2)

If you are not familiar with the SAML2 specification and are simply looking to connect your application using SAML2, you should probably use SimpleSAMLphp., (*3)

While this library is tagged as stable it is currently not very developer friendly and it's API is likely to change significantly in the future. It is however a starting point for collaboration between parties. So let us know what you would like to see in a PHP SAML2 library., (*4)

Note that the HTTP Artifact Binding and SOAP client not work outside of SimpleSAMLphp., (*5)

Usage

  • Install with Composer, add the following in your composer.json:
{
    "require": {
        "simplesamlphp/saml2": "0.1.*"
    }
}

Then run composer update., (*6)

  • Provide the required external dependencies by extending and implementing the SAML2_Compat_AbstractContainer then injecting it in the ContainerSingleton (see example below)., (*7)

  • Use at will. Example:, (*8)

    // Use Composers autoloading
    require 'vendor/autoload.php';

    // Implement the Container interface (out of scope for example)
    require 'container.php';
    SAML2_Compat_ContainerSingleton::setContainer($container);

    // Set up an AuthnRequest
    $request = new SAML2_AuthnRequest();
    $request->setId(SAML2_Utils::generateId());
    $request->setIssuer('https://sp.example.edu');
    $request->setDestination('https://idp.example.edu');

    // Send it off using the HTTP-Redirect binding
    $binding = new SAML2_HTTPRedirect();
    $binding->send($request);

License

This library is licensed under the LGPL license version 2.1. For more details see LICENSE., (*9)

The Versions

17/03 2014

dev-master

9999999-dev

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

26/02 2014

v0.4.1

0.4.1.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

21/02 2014

v0.4.0

0.4.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

27/01 2014

v0.3.0

0.3.0.0

SAML2 PHP library from SimpleSAMLphp

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

12/11 2013