symfony - Add scopes to authentified oAuth2 user -


i'm using hwioauthbundle authenticate users google account.

i know how add scopes after user's logged in.

eg: according parameters, manage user's google calendar. should ask new authorization google me access scope.

so question is, how can ask new authorizations logged in user ?

hwioauthbundle requests "https://www.googleapis.com/auth/userinfo.profile" scope default. in order manage user's google calendar, want request "https://www.googleapis.com/auth/calendar" scope too.

check out on how customize scope request: https://github.com/hwi/hwioauthbundle/blob/master/resources/doc/resource_owners/google.md


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo