simplesamlphp/saml2
概要
SimpleSAMLphp low-level SAML2 PHP library
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルSimpleSAMLphp SAML2 library
A PHP library for SAML2 related functionality.
It is used by several products, most notably SimpleSAMLphp and OpenConext.
Before you use it
DO NOT USE THIS LIBRARY UNLESS YOU ARE INTIMATELY FAMILIAR WITH THE SAML2 SPECIFICATION.
If you are not familiar with the SAML2 specification and are simply looking to connect your application using SAML2, you should probably use SimpleSAMLphp.
Note that the HTTP Artifact Binding and SOAP client do not work outside of SimpleSAMLphp.
Which version to pick?
The latest released version (7.x range) is the preferred version.
Supported Versions
| Version | Active support | Security support |
|---|---|---|
| 7.0 | Next release +6mo | Next release +1yr |
| 6.3 | As long as SimpleSAMLphp 2.5 is supported | As long as SimpleSAMLphp 2.5 is supported |
| 6.0 - 6.2 | No support | No support |
| 5.0 | 2026-09-14 | 2027-03-14 |
| 4.21 | As long as SimpleSAMLphp 2.6 is supported | As long as SimpleSAMLphp 2.6 is supported |
| 4.20 | As long as SimpleSAMLphp 2.5 is supported | As long as SimpleSAMLphp 2.5 is supported |
| 4.19 | 2026-09-14 | 2027-03-14 |
| < 4.19 | No support | No support |
Support is directly tied to supported releases of SimpleSAMLphp.
As of version 5.x we conform to Semantic Versioning. Be sure to check the UPGRADING.md file if you are upgrading from an older version. Here you will find instructions on how to deal with BC breaking changes between versions.
Usage
- Install with Composer, run the following command in your project:
composer require simplesamlphp/saml2:^4.0
Provide the required external dependencies by extending and implementing the
\SimpleSAML\SAML2\Compat\AbstractContainerthen injecting it in the ContainerSingleton (see example below).Make sure you've read the security section below.
Use at will.
Example:
// Use Composers autoloading
require 'vendor/autoload.php';
// Implement the Container interface (out of scope for example)
require 'container.php';
\SimpleSAML\SAML2\Compat\ContainerSingleton::setContainer($container);
// Create Issuer
$issuer = new \SimpleSAML\SAML2\XML\saml\Issuer('https://sp.example.edu');
// Set up an AuthnRequest
$request = new \SimpleSAML\SAML2\XML\samlp\AuthnRequest(
$issuer,
IDValue::generateId(),
null,
'https://idp.example.edu'
);
// Send it off using the HTTP-Redirect binding
$binding = new \SimpleSAML\SAML2\HTTPRedirect();
$binding->send($request);
License
This library is licensed under the LGPL license version 2.1. For more details see LICENSE.
関連プロジェクトを探す
読み込み中…
