Tutorial Setup

Github credentials

In this tutorial we use GitHub as the Identity Provider, so we need to register the Authorization Provider running on the Vagrant virtual machine as a client application with GitHub.

  1. To generate credentials, please go to: https://github.com/settings/applications/new.
  2. Use the following parameters for this tutorial:
    • Application name: EBU CPA tutorial
    • Homepage URL: http://localhost:8001
    • Application description: EBU CPA tutorial
    • Authorization callback URL: http://localhost:8001/auth/github/callback
  3. In the cell below, replace <client_id> and <client_secret> with the credentials generated by GitHub.
  4. Press Shift + ENTER to execute the cell.

In [0]:
var CLIENT_ID = "<client_id>";
var CLIENT_SECRET = "<client_secret>";

require('/opt/notebooks/tutorial/lib/tutorial-utils')(this);

this.setGithubCredentials(CLIENT_ID, CLIENT_SECRET);

Service provider registration

In this tutorial, the service provider is already registered with the authorization provider, through their config files. You can see the config settings for the service provider here and for the authorization provider here.