Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 80679499e1 | |||
|
|
23bf431c74 | ||
|
|
4bced68a09 | ||
|
|
4d3ace9d67 | ||
|
|
e9f1b8477a |
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
- id: release
|
||||
uses: rymndhng/release-on-push-action@master
|
||||
with:
|
||||
bump_version_scheme: minor
|
||||
bump_version_scheme: patch
|
||||
|
||||
- name: Check Output Parameters
|
||||
run: |
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
- name: Update image on server
|
||||
uses: garygrossgarten/github-action-ssh@release
|
||||
with:
|
||||
command: cd /docker/active/fhed && docker-compose pull && docker-compose up -d
|
||||
command: docker-compose -f /docker/active/fhed.yml -p fhed pull && docker-compose -f /docker/active/fhed.yml -p fhed up -d
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
username: ${{ secrets.SSH_USERNAME }}
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/stale@v1
|
||||
- uses: actions/stale@v3
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
stale-issue-message: 'This issue has been marked as stale due to inactivity. If this issue is still ongoing, please leave a comment.'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"require": {
|
||||
"ramsey/uuid": "^4.0",
|
||||
"vlucas/phpdotenv": "^5.0",
|
||||
"jumbojett/openid-connect-php": "^0.9.0",
|
||||
"sentry/sdk": "^2.1"
|
||||
}
|
||||
"require": {
|
||||
"ramsey/uuid": "^4.0",
|
||||
"vlucas/phpdotenv": "^5.0",
|
||||
"jumbojett/openid-connect-php": "^0.9.0",
|
||||
"sentry/sdk": "^3.0"
|
||||
}
|
||||
}
|
||||
|
||||
816
app/composer.lock
generated
816
app/composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -8,21 +8,21 @@
|
||||
|
||||
function oidc_set_vars($sub, $uid, $fname, $lname, $email)
|
||||
{
|
||||
$_SESSION['uuid'] = $sub;
|
||||
$_SESSION['username'] = $uid;
|
||||
$_SESSION['given_name'] = $fname;
|
||||
$_SESSION['family_name'] = $lname;
|
||||
$_SESSION['full_name'] = $fname . " " . $lname;
|
||||
$_SESSION['email'] = $email;
|
||||
$_SESSION['uuid'] = $sub;
|
||||
$_SESSION['username'] = $uid;
|
||||
$_SESSION['given_name'] = $fname;
|
||||
$_SESSION['family_name'] = $lname;
|
||||
$_SESSION['full_name'] = $fname . " " . $lname;
|
||||
$_SESSION['email'] = $email;
|
||||
}
|
||||
|
||||
function is_signed_in()
|
||||
{
|
||||
if (isset($_SESSION['is_signed_in'])) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
if (isset($_SESSION['is_signed_in'])) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function user_exists($db, $uuid)
|
||||
@@ -38,9 +38,9 @@
|
||||
die();
|
||||
}
|
||||
if (empty($result)) {
|
||||
return false;
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,15 +18,16 @@ Sentry\init([
|
||||
|
||||
// Database auto-generation
|
||||
if (file_exists("/../includes/install.php")) {
|
||||
return;
|
||||
add_action('run_db_populate');
|
||||
return;
|
||||
add_action('run_db_populate');
|
||||
}
|
||||
|
||||
function run_db_populate() {
|
||||
function run_db_populate()
|
||||
{
|
||||
// all my glorious one-time-magic.
|
||||
include( "/../includes/install.php" );
|
||||
// after all execution rename your file;
|
||||
rename( "/../includes/install.php", "/../includes/install-backup.php");
|
||||
include("/../includes/install.php");
|
||||
// after all execution rename your file;
|
||||
rename("/../includes/install.php", "/../includes/install-backup.php");
|
||||
}
|
||||
|
||||
// Session
|
||||
@@ -38,8 +39,9 @@ $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
// OpenID Connect
|
||||
use Jumbojett\OpenIDConnectClient;
|
||||
|
||||
$oidc = new OpenIDConnectClient($_ENV['OIDC_HOST'], $_ENV['OIDC_CLIENT_ID'], $_ENV['OIDC_CLIENT_SECRET']);
|
||||
if ($_ENV['OIDC_DISABLE_SSL'] == "true") {
|
||||
$oidc->setVerifyHost(false);
|
||||
$oidc->setVerifyPeer(false);
|
||||
$oidc->setVerifyHost(false);
|
||||
$oidc->setVerifyPeer(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user