foreverglory/oauth-bundle

Symfony OAuth

安装: 16

依赖者: 0

建议者: 1

安全: 0

星标: 1

关注者: 2

分支: 0

类型:symfony-bundle

dev-master 2017-01-20 07:55 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:42:17 UTC


README

composer require foreverglory/oauth-bundle

//app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Glory\Bundle\OAuthBundle\GloryOAuthBundle(),
            // ...
        );
    }
#app/config/config.yml
glory_oauth:
    oauth_class: ~
    connect: ~
    owners:
        qq:
            type: qq
            client_id: %qq_id%
            client_secret: %qq_secret%
        # ...
#app/config/routing.yml
glory_oauth:
    resource: "@GloryOAuthBundle/Resources/config/routing.yml"
    prefix:   /
#app/config/security.yml
security:
    firewalls:
        main:
            oauth:
                login_path: /login
                check_path: /connect/{service}/callback 
                # or router name: glory_oauth_callback