mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 02:56:26 +03:00
fix requested by Nyholm
This commit is contained in:
@@ -0,0 +1 @@
|
||||
framework.session.enabled: true
|
||||
@@ -2,28 +2,11 @@ hwi_oauth:
|
||||
# list of names of the firewalls in which this bundle is active, this setting MUST be set
|
||||
firewall_names: [secured_area]
|
||||
|
||||
# an optional setting to configure a query string parameter which can be used to redirect
|
||||
# the user after authentication, e.g. /connect/facebook?_destination=/my/destination will
|
||||
# redirect the user to /my/destination after facebook authenticates them. If this is not
|
||||
# set then the user will be redirected to the original resource that they requested, or
|
||||
# the base address if no resource was requested. This is similar to the behaviour of
|
||||
# [target_path_parameter for form login](https://symfony.com/doc/2.0/cookbook/security/form_login.html).
|
||||
# target_path_parameter: _destination
|
||||
|
||||
# an optional setting to use the HTTP REFERER header to be used in case no
|
||||
# previous URL was stored in the session (i.e. no resource was requested).
|
||||
# This is similar to the behaviour of
|
||||
# [using the referring URL for form login](https://symfony.com/doc/2.0/cookbook/security/form_login.html#using-the-referring-url).
|
||||
# use_referer: true
|
||||
|
||||
# here you will add one (or more) configurations for resource owners
|
||||
# and other settings you want to adjust in this bundle, just checkout the list below!
|
||||
# https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/2-configuring_resource_owners.md
|
||||
resource_owners:
|
||||
facebook:
|
||||
type: facebook
|
||||
client_id: '%env(FB_ID)%'
|
||||
client_secret: '%env(FB_SECRET)%'
|
||||
scope: "email"
|
||||
any_name:
|
||||
type: resource_owner_of_choice
|
||||
client_id: <client_id>
|
||||
client_secret: <client_secret>
|
||||
options:
|
||||
display: popup
|
||||
csrf: true
|
||||
csrf: true
|
||||
@@ -3,8 +3,7 @@
|
||||
<bg=blue;fg=white> </>
|
||||
|
||||
* <fg=blue>Configure</> your application:
|
||||
1. Enable sessions by uncommenting the entire session section in <comment>config/packages/framework.yaml</>
|
||||
2. Add firewall by adding <comment>- secured_area:
|
||||
1. Add firewall by adding <comment>- secured_area:
|
||||
anonymous: true
|
||||
oauth:
|
||||
resource_owners:
|
||||
|
||||
Reference in New Issue
Block a user