codeedu / simplesamlphp-module-sqlauthpassword
A simple sql auth module to simplesamlphp
Installs: 3 941
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 1
Open Issues: 0
Type:simplesamlphp-module
Requires
Requires (Dev)
- simplesamlphp/saml2: ^3.3
- simplesamlphp/simplesamlphp: ^1.17
This package is auto-updated.
Last update: 2024-10-29 05:46:51 UTC
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'] ],