Skip to content

Commit 1abc96f

Browse files
committed
Merge branch 'dev' of github.com:dbarzin/deming into dev
2 parents 4e04d6f + 1726ae2 commit 1abc96f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ OIDC_ADDITIONAL_SCOPES="deming_role"
105105
OIDC_CLIENT_ID=deming
106106
OIDC_CLIENT_SECRET=deming
107107
OIDC_BASE_URL=http://auth.lan
108+
OIDC_SUFFIX=""
108109
OIDC_REDIRECT_URI=${APP_URL}auth/callback/oidc

app/Http/Controllers/SocialiteController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public function callback(Request $_request, string $provider)
6868
$allow_createUser = false;
6969
$allow_updateUser = false;
7070
if (config($config_name)) {
71-
$allow_createUser = config($config_name.'.allow_create_User', $allow_createUser);
72-
$allow_updateUser = config($config_name.'.allow_update_User', $allow_updateUser);
71+
$allow_createUser = config($config_name.'.allow_create_user', $allow_createUser);
72+
$allow_updateUser = config($config_name.'.allow_update_user', $allow_updateUser);
7373
}
7474
Log::debug('CONFIG: allow_createUser='.($allow_createUser ? 'true' : 'false'));
7575
Log::debug('CONFIG: allow_updateUser='.($allow_updateUser ? 'true' : 'false'));

app/Providers/Socialite/GenericSocialiteProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class GenericSocialiteProvider extends AbstractProvider implements ProviderInter
4848
*/
4949
public function getOIDCUrl()
5050
{
51-
return rtrim(config('services.oidc.host'), '/').'/oauth2';
51+
return rtrim(config('services.oidc.host'), '/').config('services.oidc.suffix', '');
5252
}
5353

5454
/**

config/services.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
'client_id' => env('OIDC_CLIENT_ID'),
6767
'client_secret' => env('OIDC_CLIENT_SECRET'),
6868
'host' => env('OIDC_BASE_URL'),
69+
'suffix' => env('OIDC_SUFFIX', null),
6970
'redirect' => env('OIDC_REDIRECT_URI', rtrim(env('APP_URL'), '/').'/auth/callback/oidc'),
7071
'authorize_endpoint' => env('OIDC_AUTHORIZE_ENDPOINT', null),
7172
'token_endpoint' => env('OIDC_TOKEN_ENDPOINT', null),

0 commit comments

Comments
 (0)