Google Plus authorization with Symfony2

We have Facebook and Twitter authorization packages for the Symfony2 application. But what about other sites like Google Plus? There is no package yet, and I would like to know if anyone knows about the right direction of its implementation.

I think Google Plus uses OAuth. Can this be implemented using the OAuth package?

+5
source share
2 answers

You can check out KnpOAuthBundle (under development) - only the github OAuth provider is implemented.

Google OAuth 2.0 ( ) IRC, , - .

+2

KnpOAuthBundle HWIOAuthBundle.

HWIOAuthBundle OAuth, Facebook, Twitter, Google, Yahoo .. , 1 . : Google:

hwi_oauth:
    resource_owners:
        google:
            type: google
            client_id: *client_id*
            client_secret: *client_secret
            scope: "https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile"
    firewall_name: *main firewal name*

:

google_login:
    pattern: /login/google
hwi_oauth_redirect:
    resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
    prefix:   /connect

, /connect/*provider_name*, . /connect/google

+8

All Articles