Skip to content Skip to sidebar Skip to footer

Google Oauth Client-id For Multiple Site Multitalency Purpose

I'm working on project which based on multitalency concept where users registered their domain info and we create for them. Each sites uses google oauth for viewing google analytic

Solution 1:

The answer to your question "is their any possible way to use that client-id without define javascript-origin or redirect-url?" is no. These requirements are there for security. If a client could define them, it would defeat their security purpose.

Have a look at the "state" parameter to the callback URL (https://developers.google.com/accounts/docs/OAuth2WebServer#formingtheurl). You can use this to tell your callback routine where the callback originated, and it can then behave or redirect accordingly.

Post a Comment for "Google Oauth Client-id For Multiple Site Multitalency Purpose"