knpuniversity-oauth2-client-bundle

This commit is contained in:
Clemens Krack
2018-08-15 16:39:34 +02:00
parent 15e40f27cd
commit 6b9aa86b73
3 changed files with 37 additions and 0 deletions
@@ -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
@@ -0,0 +1,8 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What's next for KnpUOAuth2ClientBundle? </>
<bg=blue;fg=white> </>
* <fg=blue>Configure</> your oauth2 clients:
Add clients as described at <comment>https://github.com/knpuniversity/oauth2-client-bundle#configuration</> in your security firewalls section.
* <fg=blue>Read</> the documentation at <comment>https://github.com/knpuniversity/oauth2-client-bundle</>
@@ -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"
}
}