简体   繁体   中英

How to use Google OAuth as autentification for Symfony2 Rest API

I am working on SPA and HTML5 Mobile application that's consume my server application via rest api. Server app connects to Google Adwords Api and then sending data to client app. My question is: is it possible to use google oauth login as login for my server api. And how?

Do I need to use FOSOAuthServerBundle?

Best, Antonio

This is the flow for this use case: https://developers.google.com/+/web/signin/server-side-flow

And after this you can use google token as your api token, or build your own oauth and use your own token.

Also it is possible to use FOSOAuthServerBundle with custom grant

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM