diff --git a/hwi/oauth-bundle/0.6/config/packages/hwi_oauth.yaml b/hwi/oauth-bundle/0.6/config/packages/hwi_oauth.yaml new file mode 100644 index 00000000..2ac3afb8 --- /dev/null +++ b/hwi/oauth-bundle/0.6/config/packages/hwi_oauth.yaml @@ -0,0 +1,14 @@ +hwi_oauth: + # list of names of the firewalls in which this bundle is active, this setting MUST be set + firewall_names: [main] + + # 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" + options: + display: popup + csrf: true diff --git a/hwi/oauth-bundle/0.6/config/routes/hwi_oauth_routing.yaml b/hwi/oauth-bundle/0.6/config/routes/hwi_oauth_routing.yaml new file mode 100644 index 00000000..ffab9d9f --- /dev/null +++ b/hwi/oauth-bundle/0.6/config/routes/hwi_oauth_routing.yaml @@ -0,0 +1,11 @@ +hwi_oauth_redirect: + resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml" + prefix: /connect + +hwi_oauth_connect: + resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml" + prefix: /connect + +hwi_oauth_login: + resource: "@HWIOAuthBundle/Resources/config/routing/login.xml" + prefix: /login diff --git a/hwi/oauth-bundle/0.6/manifest.json b/hwi/oauth-bundle/0.6/manifest.json new file mode 100644 index 00000000..ac132ad4 --- /dev/null +++ b/hwi/oauth-bundle/0.6/manifest.json @@ -0,0 +1,12 @@ +{ + "bundles": { + "HWI\\Bundle\\OAuthBundle\\HWIOAuthBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "FB_ID": "", + "FB_SECRET": "" + } +} diff --git a/hwi/oauth-bundle/0.6/post-install.txt b/hwi/oauth-bundle/0.6/post-install.txt new file mode 100644 index 00000000..9c175efb --- /dev/null +++ b/hwi/oauth-bundle/0.6/post-install.txt @@ -0,0 +1,19 @@ + + What's next for HWIOAuthBundle? + + + * Configure your application: + 1. Add firewall by adding - secured_area: + anonymous: true + oauth: + resource_owners: + my_github: "/login/check-github" + login_path: /login + use_forward: false + failure_path: /login + + oauth_user_provider: + service: hwi_oauth.user.provider + in your security firewalls section. + + * Read the documentation at https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/3-configuring_the_security_layer.md