This is a sample yii2 app to show the usage of the PHP package lucidprogrammer/yii2-simplesamlphp
Use .env_template and create .env. Fill in the details as per your situation. You should be ready to go.
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',
],
Not much
public function actionIndex()
{
var_dump(Yii::$app->user);
}
docker-compose up