OIDC test - test jumbojett oidc round two 1
This commit is contained in:
1 parent
6f8dd7bbe3
commit
65a69b585d
9 files changed
+85
-226
No files matched your search
+15
-19
@@ -1,23 +1,19 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
// config.php
|
||||
return [
|
||||
// Base URL for the Authelia OpenID Provider
|
||||
'provider_url' => 'https://auth.matt-cloud.com', // <-- change if you run locally
|
||||
|
||||
session_start();
|
||||
// Client (your application) credentials
|
||||
'client_id' => 'fitness-oidc',
|
||||
'client_secret' => 'egebuqzZfVnjjBG9JDQ8tjW3TzV9gJurvT7qfB6c2SX2nPBNeaGycDfx4788QzJd',
|
||||
|
||||
/**
|
||||
* Load environment variables. If you don't use phpdotenv,
|
||||
* copy the values from .env directly here.
|
||||
*/
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||
$dotenv->load();
|
||||
// The callback URL **must** match exactly what is in Authelia
|
||||
'redirect_uri' => 'https://fitness.matt-cloud.com/pgapi/auth/oidc/callback',
|
||||
|
||||
/**
|
||||
* Basic OIDC configuration – keep all secrets out of source‑control.
|
||||
*/
|
||||
define('OIDC_CLIENT_ID', getenv('OIDC_CLIENT_ID'));
|
||||
define('OIDC_CLIENT_SECRET', getenv('OIDC_CLIENT_SECRET'));
|
||||
define('OIDC_REDIRECT_URI', getenv('OIDC_REDIRECT_URI'));
|
||||
define('OIDC_AUTH_ENDPOINT', getenv('OIDC_AUTH_ENDPOINT'));
|
||||
define('OIDC_TOKEN_ENDPOINT', getenv('OIDC_TOKEN_ENDPOINT'));
|
||||
define('OIDC_USERINFO_ENDPOINT', getenv('OIDC_USERINFO_ENDPOINT'));
|
||||
define('OIDC_LOGOUT_ENDPOINT', getenv('OIDC_LOGOUT_ENDPOINT'));
|
||||
define('OIDC_POST_LOGOUT_REDIRECT_URI', getenv('OIDC_POST_LOGOUT_REDIRECT_URI'));
|
||||
// Scopes we want – Authelia already provides “openid”, “profile”, “email”, “groups”
|
||||
'scopes' => ['openid', 'profile', 'email', 'groups'],
|
||||
|
||||
// Response type & grant type
|
||||
'response_type' => 'code',
|
||||
];
|
||||
Reference in new issue
Block a user