Skip to content

Commit

Permalink
Merge pull request #1110 from j0k3r/fix/github-scope
Browse files Browse the repository at this point in the history
Add `user:email` scope
  • Loading branch information
j0k3r authored Jul 27, 2023
2 parents 8f5a1a0 + aa65101 commit 7a1ab5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ when@prod:
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
type: rotating_file
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
formatter: monolog.formatter.json
max_files: 10
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
path: "%kernel.logs_dir%/deprecation.log"
1 change: 1 addition & 0 deletions config/packages/sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ when@prod:
handlers:
sentry:
type: service
id: Sentry\Monolog\Handler
level: !php/const Monolog\Logger::ERROR
hub_id: Sentry\State\HubInterface

Expand Down
2 changes: 1 addition & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function connectAction(ClientRegistry $oauth): RedirectResponse

return $oauth
->getClient('github')
->redirect([], []);
->redirect(['user:email'], []);
}

/**
Expand Down

0 comments on commit 7a1ab5f

Please sign in to comment.