PHPackages                             flexcoders/opauth-saml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. flexcoders/opauth-saml

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

flexcoders/opauth-saml
======================

SAML strategy for Opauth

039[1 issues](https://github.com/FlexCoders/opauth-saml/issues)

Since Jul 1Pushed 10y ago2 watchersCompare

[ Source](https://github.com/FlexCoders/opauth-saml)[ Packagist](https://packagist.org/packages/flexcoders/opauth-saml)[ RSS](/packages/flexcoders-opauth-saml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Opauth-Ldap
===========

[](#opauth-ldap)

[Opauth](https://github.com/opauth/opauth) strategy for SAML authentication.

Opauth is a multi-provider authentication framework for PHP.

Under development, do not use.
==============================

[](#under-development-do-not-use)

Getting started
---------------

[](#getting-started)

1. Install Opauth-Ldap:

    ```
    cd path_to_opauth/Strategy
    git clone git://github.com/flexcoders/opauth-saml.git saml
    ```
2. Configure Opauth-Saml strategy.
3. Call it.

You call it like so:

```
// some input vars
$providerName = "Saml";

// prep a config
$config = [
	'provider' => $providerName,
	'username' => $_POST['username'],
	'password' => $_POST['password'],
	'request_uri' => '/current/uri/'.strtolower($providerName),
	'callback_url' => '/your/uri/for/callback/'.strtolower($providerName),
];

// construct the Opauth object
$this->opauth = new \Opauth($config, true);

```

It will attempt an SAML login, and then redirect to the callback url, just like with all other Opauth strategies, and with a similar response.

Strategy configuration
----------------------

[](#strategy-configuration)

Required parameters:

```
