An open API service indexing awesome lists of open source software.

https://github.com/codeedu/simplesamlphp-module-sqlauthpassword

A simple sql auth module to simplesamlphp
https://github.com/codeedu/simplesamlphp-module-sqlauthpassword

Last synced: about 2 months ago
JSON representation

A simple sql auth module to simplesamlphp

Awesome Lists containing this project

README

          

'example-sql-custom' => [
'sqlauthcustom:SQL',
'dsn' => "mysql:host=$DB_HOST;port=$DB_PORT;dbname=$DB_DATABASE",
'username' => $DB_USERNAME,
'password' => $DB_PASSWORD,
'query' => 'SELECT **fields** FROM users WHERE email = :email;',
'password_verify' => function($rawPassword, $row){
return password_verify($rawPassword, $row['password']);
},
'ignore_attributes' => ['password']
],