Restrict login email with Google (HWIOAuthBundle) to specific Domain in Symfony -


how can restrict logging google specific domain hwioauthbundle in symfony2 (hd parameter). ¿where can write it?

documentation

thanks

you may write inside options parameter resource owners. e.g.:

# config.yml resource_owners:     google:         type:                google         client_id:           "%google_client_id%"         client_secret:       "%google_client_secret%"         scope:               "email profile"         options:             hd:              "yourdomain.com"             access_type:     offline 

as referenced issue: https://github.com/hwi/hwioauthbundle/issues/216


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

Maven Javadoc 'Cannot find default setter' and fails -