2017 © Pedro Peláez
 

yii2-extension ptesaml

PTE simple SAML login

image

attek/ptesaml

PTE simple SAML login

  • Monday, July 16, 2018
  • by attek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 9 % Grown

The README.md

ptesaml

PTE Saml Login, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

To install, either run, (*3)

    composer require attek/ptesaml "1.*" 

or add, (*4)

"attek/ptesaml" : "1.*"

or clone form github, (*5)

    git clone https://github.com/Attek/ptesaml

Usage

Set in config file (web.php), (*6)

'components' => [
    'saml' => [
            'class' => 'attek\ptesaml\Saml',
            'simpleSamlPath' => '/usr/share/simplesamlphp/',
            'config' => 'default-sp'
    ]
]

Use in code, (*7)

$saml = Yii::$app->saml;
//check is authenticated
$saml->isAuthenticated();
//Login
$saml->requireAuth();
$saml->getAttributes();
$saml->logout();
$saml->getSamlUser();

Login button, (*8)


= Html::a(Yii::t('app', 'Login'), ['saml'], ['class' => 'btn btn-primary pte-login']) ?>

The Versions

16/07 2018

dev-master

9999999-dev

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

16/07 2018

1.0.6

1.0.6.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

28/04 2017

1.0.5

1.0.5.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

29/03 2017

1.0.4

1.0.4.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

06/03 2017

1.0.3

1.0.3.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

02/02 2017

1.0.2

1.0.2.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek

28/09 2016

1.0.1

1.0.1.0

PTE simple SAML login

  Sources   Download

MIT

The Requires

 

by Avatar attek