chok/sfMelodyPlugin — pull request #51 by tquensen (2012-03-19 14:40:38+00:00)
Title: Added authentication with google and namespace support for sfMelodyUserFactory::createUser

There was no useful way to get basic user info for google accounts, so a added some changes:

a new "userinfo" namespace in the google class: https://www.googleapis.com/userinfo
the required scope is "https://www.googleapis.com/auth/userinfo.email", so this does not work with the api config (for whatever reason, scope is different to namespace)

As this is not the default namespace, i added a parameter "namespace" to use with the user configuration.

So, to authenticate with google and retrieve the email, use this config:

```
melody:
...

google:
key: ...
secret: ...
callback: "@homepage" # or absolute url

# api: [] DOES NOT WORK # only for google - easy way to set scopes
scope: [https://www.googleapis.com/auth/userinfo.email]

user: # to create an user
email:
call: email
path: data.email
key: true
namespace: userinfo # use the namespace userinfo for the email-call, not the default one
```