outspaced / oauth2-client-bundle

Creates OAuth2 Provider services for https://github.com/thephpleague/oauth2-github

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KnpUOAuth2ClientBundle

This bundle integrates with league/oauth2-client and allows you to easily create different "providers" as 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/

About

Creates OAuth2 Provider services for https://github.com/thephpleague/oauth2-github

License:MIT License


Languages

Language:PHP 100.0%