Skip to content

johnnypeck/oauth2-client-bundle

 
 

Repository files navigation

KnpUOAuth2ClientBundle

This bundle integrates with league/oauth2-client and allows you to easily create different "providers" are services in your container.

If you configure the facebook provider, then you'll have a new service in your container called knpu.oauth.facebook_provider.

# config.yml
knpu_oauth2_client:
    providers:
        # will create a service: "knpu.oauth.facebook_provider"
        facebook:
            client_id: foo
            client_secret: bar
            graph_api_version: 2.3
            # the route that you're redirected to after
            redirect_route: connect_facebook_check
            redirect_params: {}
        # will create a service: "knpu.oauth.github_provider"
        github:
            client_id: foo
            client_secret: bar
            redirect_route: connect_github_check
            redirect_params: {}
        # todo - add more
        # http://oauth2-client.thephpleague.com/providers/thirdparty/

Packages

No packages published

Languages

  • PHP 100.0%