diff --git a/knpuniversity/oauth2-client-bundle/1.20/config/packages/knpu_oauth2_client.yaml b/knpuniversity/oauth2-client-bundle/1.20/config/packages/knpu_oauth2_client.yaml new file mode 100644 index 00000000..9f941780 --- /dev/null +++ b/knpuniversity/oauth2-client-bundle/1.20/config/packages/knpu_oauth2_client.yaml @@ -0,0 +1,15 @@ +knpu_oauth2_client: + # configure your clients as described here: https://github.com/knpuniversity/oauth2-client-bundle#configuration + clients: + # will create a service: "knpu.oauth2.client.facebook_main" + facebook_main: + # this will be one of the supported types + type: facebook + client_id: '%env(FB_ID)%' + client_secret: '%env(FB_SECRET)%' + # the route that you're redirected to after + # see the controller example below + redirect_route: connect_facebook_check + # route parameters to pass to your route, if needed + redirect_params: {} + graph_api_version: v2.12 diff --git a/knpuniversity/oauth2-client-bundle/1.20/config/packages/post-install.txt b/knpuniversity/oauth2-client-bundle/1.20/config/packages/post-install.txt new file mode 100644 index 00000000..8adae4a8 --- /dev/null +++ b/knpuniversity/oauth2-client-bundle/1.20/config/packages/post-install.txt @@ -0,0 +1,8 @@ + + What's next for KnpUOAuth2ClientBundle? + + + * Configure your oauth2 clients: + Add clients as described at https://github.com/knpuniversity/oauth2-client-bundle#configuration in your security firewalls section. + + * Read the documentation at https://github.com/knpuniversity/oauth2-client-bundle diff --git a/knpuniversity/oauth2-client-bundle/1.20/manifest.json b/knpuniversity/oauth2-client-bundle/1.20/manifest.json new file mode 100644 index 00000000..305009b8 --- /dev/null +++ b/knpuniversity/oauth2-client-bundle/1.20/manifest.json @@ -0,0 +1,14 @@ +{ + "bundles": { + "KnpU\\OAuth2ClientBundle\\KnpUOAuth2ClientBundle()": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "env": { + "#1": "Register for a facebook oauth app:", + "#2": "https://developers.facebook.com/apps/", + "FB_ID": "facebook-app-id", + "FB_SECRET": "facebook-secret" + } +}