1

I am using “Google Picker API” for my website which contains the domain and multiple subdomains (Main domain: www.example.com and Subdomain: *.example.com). I have created API Key and OAuth 2.0 client IDs but it’s working only for the Main domain. Is there any way/setting to work the same API Key and OAuth 2.0 client IDs for Main domain and Subdomain.

Thanks

Abhishek
  • 583
  • 5
  • 16
  • Subdomain wildcard is not supported by OAuth. According to vlatko "Wildcard matching subdomains is not supported in Google OAuth. You could try using the state parameter and include the user-specific information there. This parameter will be returned to you in the response." Here is the [link](http://stackoverflow.com/questions/13652062/subdomain-in-google-console-redirect-uris) for more information about his answer and workaround. – Mr.Rebot Apr 13 '16 at 09:12
  • thanks Mr. Rebot, but there is any other chance to do this by writing custom code or using CURL. – Abhishek Apr 21 '16 at 10:52

0 Answers0