In part 2 of Google Login Tutorial we had discussed first two steps, now we will be moving forward and discussing Third Step.
Step 3: Setting up Consent Screen:
Consent screen is nothing but a view which user will see once he entered correct username and password. If user is already logged on Google then he will be directly redirected to this screen. Consent Screen contains information that the user is releasing and the terms that apply. For example, when the user logs in, they might be asked to give our application access to their email address and basic account information. We request access to this information using some parameter (called as scope parameter), which our app includes in its authentication request (which we send when we redirect user for our app to Google’s URI for authentication and authorization). We can also request access to other Google APIs or services such as Google Maps, Google Drive, and many more. Note that we should turn on this APIs from Google’s Developer Console to make use of them as discussed in Step1.
The user consent screen also presents branding information such as your product name, logo, and a homepage URL. You control the branding information in the Developers Console. To set up your project’s consent screen, do the following:
- Go to the Google Developers Console.
- Select a Project, or create a new one.
- In the sidebar on the left, expand APIs & auth. Next, click APIs. In the list of APIs, make sure all of the APIs you are using show a status of ON.
- In the sidebar on the left, select Consent screen.
- Fill out the form and click Save.