You can configure your Kannu portal to include Single Sign-On (SSO), an authentication process that lets users log in using an account from a different site. Kannu currently supports single sign-on with Google, Facebook, and GitHub accounts. These are a great way to get users using your portal, since no password setup is required when they register.
On the Kannu side, all login options are configured in Admin>Configuration>Site Settings>Authentication Options. For anything other than email/password login, you'll need to create an "app" on the relevant site, and then enter your ID and secret key on Kannu to make the connection. Below you'll find guides on setting up SSO for each available website.
NOTE: If you set up SSO for your Kannu portal, we still recommend that you leave email/password login as an option, so as not to wall out learners who don't have accounts with whatever service you connect. There are certain exceptions to this: If you're confident all potential users will have accounts with the service, then you may not need to include email/password as an option. For instance, if your organization uses Google Apps for user emails, you can use just Google SSO since all users will have Google emails.
- Visit the Google API Console.
- Click on “Enable APIs and Services”
- Click on the Google+ API link
- If prompted, click on “Create Project”. If you already have a project, you can select which one to use from the dropdown at the top of the screen.
or- Wait until the project is completed (this may take a few minutes)
- Click on “Enable” at the top of the screen.
- Click on “Create Credentials”
- Click on “client ID” to create an OAuth Client ID
- Click on “Configure Consent Screen”
- Fill out the fields with appropriate values, for the homepage, privacy policy, and terms of use fields you can use the following values:
- Click Save
- Select “Web Application” as the application type
- Fill out the authorized domain fields with the following information:
- Click “create.”
- Copy the OAuth Client ID and Client Secret from the next screen. Paste those values into the appropriate fields in the authentication section of the admin settings for your Kannu site.
- Click “Save” to save the settings.
- Log out of your Kannu site and attempt to log in using your Google credentials.
- Go to Facebook Developers and log in with your account.
- Select Add a New App from the dropdown in the upper right:
- Provide a Display Name and Contact Email for your application.
- On the Product Setup page that follows, click Get Started next to Facebook Login:
- Select “Web” as the type of application. The Client OAuth settings for Facebook Login will appear.
- Enter the following URL in the Valid OAuth redirect URIs field:
- Click Save Changes.
- Click on App Review on the left navigation bar. Near the top of the page under "Make (Your App Name) App public?" click to move the slider to Yes.
- Click Settings in the left nav. On this page you can retrieve your App ID and App Secret. Click on “Show” to reveal the App Secret.
- Copy the App ID and App Secret and paste them into the appropriate fields on the Authentication options of the admin settings page for your Kannu Site.
- Click “Save” to save the settings.
- Log out of your Kannu site and attempt to log in using your Facebook credentials.
Github
- Log in to Github (or create an account if you do not already have one)
- In the upper-right corner of any page, click your profile photo, then click Settings.
- In the left sidebar, click OAuth Apps.
- Click Register a new application.
- In "Application name", type the name of your app.
- In "Homepage URL", type the full URL to your app's website.
- In "Authorization callback URL", type the callback URL of your app.
- Click Register application.
- Copy the Client IDand Client Secret and paste them into the appropriate fields on the authentication section of the admin settings page on your Kannu site.
- Click “Save” to save the settings.
- Log out of your Kannu site and attempt to log in using your Github credentials.
AuthO
- Log in to AuthO (or create an account if you do not already have one)
- If it's a new account, specify tenant domain. For example: youcompanyname.auth0.com. Make a note of this. Click Next
- In the next screen, enter some more details about your account and click on Create Account:
- If it's a new account, specify tenant domain. For example: youcompanyname.auth0.com. Make a note of this. Click Next
- In the left sidebar, click on Applications.
- Click the Default App
- Scroll down and find the 'Allowed Callback URLs" field and paste: https://YOUR_KANNU_URL/auth/auth0/callback(scroll down and save)
- Copy "Domain", "Client ID" and "Client Secret" fields and paste them into the appropriate fields on the authentication selection of the admin settings page on your Kannu site.
Azure
- Log in to Azure (or create an account if you do not already have one)
- Scroll down and find the 'Allowed Callback URLs" field and paste: https://YOUR_KANNU_URL/auth/azure_activedirectory_v2/callback(scroll down and save)
- Copy "Domain", "Client ID" and "Client Secret" fields and paste them into the appropriate fields on the authentication selection of the admin settings page on your Kannu site.