diff --git a/.env.example b/.env.example index 1b5466fe..900a1ad2 100644 --- a/.env.example +++ b/.env.example @@ -60,6 +60,7 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" OAUTH_BASE=https://auth.vatsim.net OAUTH_CLIENT= OAUTH_SECRET= +OAUTH_SCOPES="full_name,email" # OAuth variable mapping, leave it as is for Vatsim Connect # This allows you to fit the data validation your OAuth2 service, the - character indicates array structure diff --git a/config/oauth.php b/config/oauth.php index 7a961a6b..8e7f2ad6 100644 --- a/config/oauth.php +++ b/config/oauth.php @@ -32,7 +32,7 @@ /** * The scopes the user will be requested */ - 'scopes' => explode(',', "full_name,email"), + 'scopes' => explode(',', env('OAUTH_SCOPES', 'full_name,email')), /* * OAuth variable mapping