IONIC Google OAuth
Step 1: Goto https://console.developers.google.com/project
Step 2: Login to with gmail account and Click Create Project
Step 3: Enter project name in the Popup and click create
Step 4: In the left Menu under API’s and auth select APIs
Step 5: Under Browse APIs Search for Google+ and turn it on
Step 6: In the left Menu under API’s and auth select Credentials
Step 7: It will ask you to first setup consent screen[Screen to setup about your App], click Configure consent screen
Step 8: Select email address, Give a name to Product, Optionally you can set a home page url and a URL to your App logo and Save
Step 9: Now give your App url under Create Client id and Click Create client ID
Step 10: Under public API access in the same screen click Create new Key
Step 11: Select Browser key from popup and enter your URL Ex: http://localhost:8100/* [* indicates any subfolder] and click Create new Key
Note: For development you can enter local address and while in Production update this urls to the servers
Copy the API KEY and replace it in Index.html Then again copy the CLIENT ID and in your controller replace the existing and Test the App ionic serve
- See more at: http://techiedreams.com/facebo....ok-and-google-oauth-
-
Category
No comments found