How to get client secret from Google Developers Console in iOS?

我只是一个虾纸丫 提交于 2020-01-11 02:50:52

问题


Currently i am working on one of old project within that there is a client id and client secret. Now i want to update those with new client id and client secret using another Developer account. I followed each and every step from

https://developers.google.com/+/mobile/ios/getting-started

Google APIs Console - missing client secret

But i can see only client id. Where is the client secret ?

Here i can see only client id


回答1:


Hey this is step by step process ,hope this helps you...

Step 1: Goto Google Developer console and create new app

Step 2:Enable the google plus api

You can see the enable api in the Enable API's tab which is next to API Library ,which is visible in second image.

Step 3: Goto to credential in API & auth tab then select credentials option

select the type of authentication you require

then you will can see the configure consent screen configure the page with the information you wish to provide .

Step 4: Select the web Application option on top and enter required url's

and finally click create button

once you do that ..you can see ...client id and client secret key...




回答2:


When in iOS, the application type of the OAuth credential should be 'iOS'. And then you should pass an empty string as the client secret in your code.



来源:https://stackoverflow.com/questions/32071856/how-to-get-client-secret-from-google-developers-console-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!