Skip to content

lucidprogrammer/yii2-adfs-saml20-sp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

This is a sample yii2 app to show the usage of the PHP package lucidprogrammer/yii2-simplesamlphp

Environment Settings

Use .env_template and create .env. Fill in the details as per your situation. You should be ready to go.

Code Changes to the basic app

app/config/web.php refer to the following.

Once you do this setting, the app will be using SAML.

'user' => [
    'class' => 'lucidprogrammer\simplesamlphp\SamlUser',
    'idAttribute' => 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',
],

controllers/SiteController

Not much

public function actionIndex()
{
  var_dump(Yii::$app->user);
}

Go

docker-compose up

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published