Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a default value for password_test_user and password_test_pass for configuration page #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@
'issuer_url' => $_POST['issuer_url'],
'client_id' => $_POST['client_id'],
'client_secret' => $_POST['client_secret'],
// We want to save password_test_user and password_test_pass
// to prevent PHP from raising an error
// We reset the two values as they may contains sensitive data
'password_test_user' => '',
'password_test_pass' => '',
'scope' => $_POST['scope'],
'preferred_username' => $_POST['preferred_username'],
'proxy' => $_POST['proxy'],
Expand Down
22 changes: 11 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "jasperweyne/piwigo_oidc",
"description": "A Piwigo plugin for OpenID Connect authentication of users.",
"license": "apache-2.0",
"authors": [
{
"name": "Jasper Weyne",
"email": "[email protected]"
}
],
"require": {
"jumbojett/openid-connect-php": "^0.9.1"
"name": "jasperweyne/piwigo_oidc",
"description": "A Piwigo plugin for OpenID Connect authentication of users.",
"license": "apache-2.0",
"authors": [
{
"name": "Jasper Weyne",
"email": "[email protected]"
}
],
"require": {
"jumbojett/openid-connect-php": "^0.9.10"
}
}
112 changes: 90 additions & 22 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions maintain.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class OpenIdConnect_maintain extends PluginMaintain
'issuer_url' => '',
'client_id' => '',
'client_secret' => '',
'password_test_user' => '',
'password_test_pass' => '',
'scope' => 'openid profile email',
'preferred_username' => '',
'proxy' => '',
Expand Down