flexcoders / opauth-saml
SAML strategy for Opauth
dev-master
2015-07-01 09:14 UTC
Requires
- php: >=5.2.0
- opauth/opauth: >=0.2.0
This package is auto-updated.
Last update: 2024-11-04 23:57:07 UTC
README
Opauth strategy for SAML authentication.
Opauth is a multi-provider authentication framework for PHP.
Under development, do not use.
Getting started
-
Install Opauth-Ldap:
cd path_to_opauth/Strategy git clone git://github.com/flexcoders/opauth-saml.git saml
-
Configure Opauth-Saml strategy.
-
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
Required parameters:
<?php 'Saml' => array( )
References
License
Opauth-Ldap is MIT Licensed Copyright © 2015 FlexCoders Ltd (http://flexcoders.co.uk)