English subtitles

← Configure API

Get Embed Code
4 Languages

Showing Revision 4 created 05/24/2016 by Udacity Robot.

  1. The next step is to configure
    the system to use the sign in API.
  2. When you've signed into your project,
  3. as you can see here, select the APIs and
    off link on the left.
  4. Once you've done that, select APIs.
  5. Under the APIs, you'll then need to
    find the Google+ API and enable it.
  6. Once its enabled, you can then go to
    the consent screen link on the left.
  7. You might be familiar with the consent
    screen from signing into apps, and
  8. you can see an example
    here on the right.
  9. To build one of these, the least that
    you have to configure is an email
  10. address, so I'm just going to
    put mine in, and a product name.
  11. I'm just going to call mine Signin1_1.
  12. Once you've done that,
    scroll down and click Save.
  13. Finally, under the Credential's link,
    I'm going to create a new client ID, and
  14. I'm going to select this to be
    an installed application for Android.
  15. I need to give it a package name and
    you have to remember this package name.
  16. You'll need it in the next step as
    you're building your application.
  17. I'm going to call it
  18. And then you need your certificate
    fingerprint, your SHA1.
  19. Now this is what you got
    in the terminal earlier on.
  20. So, if I go back to my terminal,
    I've highlighted my SHA1.
  21. I'm going to copy it and then I'm
    going to go back to the console.
  22. And in the console I'm
    going to paste that.
  23. Then finally, I'm going to
    leave Deep linking disabled and
  24. create a new client ID.
  25. So, we'll take a moment to
    create the client ID And
  26. you can see it's up here now.
  27. So now, any application trying
    to sign into the infrastructure,
  28. the package name will be
    checked against what's allowed.
  29. And if I build an application called
    com.udacity.firstsignin on the machine
  30. with this fingerprint, then that
    application will be able to sign in.
  31. If I run that code on a different
    machine, it won't sign in.
  32. I would have to create a new client
    ID for that Android application
  33. with a certificate fingerprint
    from the other machine.
  34. This is one of the limitations that
    you'll get when your debugging.
  35. So sometimes you'll have
    problems when you sign in and
  36. it doesn't appear to work, and that's
    usually the case of what's happened.
  37. So next up,
    your going to create a project and
  38. your going to configure it to use this.