Single-Sign-On (SSO)

Single Sign-On (SSO) with Auth0

Enabling Auth0 with SpreadsheetWeb Hub Configuring Auth0 Dashboard First, log into your Auth0 dashboard ( https://auth0.com/api/auth/login?redirectTo=dashboa…

Enabling Auth0 with SpreadsheetWeb Hub

Configuring Auth0 Dashboard

First, log into your Auth0 dashboard (https://auth0.com/api/auth/login?redirectTo=dashboard).

Configure Auth 0 Dashboard: Configuring Auth0 Dashboard interface screenshot 1 in Single Sign-On (SSO) with Auth0

In the lefthand panel, navigate to the Applications > Applications tab.

Configure Auth 0 Dashboard Applications Tab: Configuring Auth0 Dashboard interface screenshot 2 in Single Sign-On (SSO) with Auth0

Create a new application and select Regular Web Applications. Provide a name – we suggest ‘SpreadsheetWeb Hub’.

Configure Auth 0 Dashboard Applications Create Application: Configuring Auth0 Dashboard interface screenshot 3 in Single Sign-On (SSO) with Auth0

From the list of options, select ASP.NET Core.

Configure Auth 0 Dashboard Applications Create Application ASP: Configuring Auth0 Dashboard interface screenshot 4 in Single Sign-On (SSO) with Auth0

Go to the Settings tab, and copy following properties:

  1. Domain
  2. Client ID
  3. Client Secret

Configure Auth 0 Dashboard Applications Create Application Settings: Configuring Auth0 Dashboard interface screenshot 5 in Single Sign-On (SSO) with Auth0

Keep this information for the configuration of SpreadsheetWeb Hub.

Under the Application URIs section, update the Application Login URI property to include your domain identity login URL. For example, if your FQDN is my-domain.spreadsheetweb.com, then the URL should look like:

https://my-domain.spreadsheetweb.com/identity/authorize

Configure Auth 0 Dashboard Applications Create Application Login URL: Configuring Auth0 Dashboard interface screenshot 6 in Single Sign-On (SSO) with Auth0

In the same section, under the Allowed Callback URLs, add the same FQDN URL but point to the callback for Auth0, which will be /callback-auth0:

Configure Auth 0 Dashboard Applications Create Application Allowed URLs: Configuring Auth0 Dashboard interface screenshot 7 in Single Sign-On (SSO) with Auth0

Save your changes.

Configuring SpreadsheetWeb Hub Server Settings

On the server, go to the global settings directory JSON file, by default found in C:\HubTemp\Settings\appsettings.shared.json. Open the file in Notepad or your favorite editor and find the section that includes “Auth0” under IdentityServer > ExternalLoginProviders > Auth0.

Update the Enabled flag to be true, and add your Domain, ClientId, and ClientSecret values from the prior section:

Configure Auth 0 Hub Server Settings: Configuring SpreadsheetWeb Hub Server Settings interface screenshot 8 in Single Sign-On (SSO) with Auth0

Perform an iisreset on the server by opening CMD Prompt as Admin, typing in iisreset and hitting Enter.

Configuring a User

On the Auth0 Dashboard, go to User Management > Users.

Configure Auth 0 Dashboard Users: Configuring a User interface screenshot 9 in Single Sign-On (SSO) with Auth0

Create a user by providing an Email and Password.

Configure Auth 0 Dashboard Users Create User: Configuring a User interface screenshot 10 in Single Sign-On (SSO) with Auth0

After creating the user, edit their Name property and define a relevant first and last name. The SpreadsheetWeb Hub platform requires first name, last name, and email address to create a new user in the system.

Configure Auth 0 Dashboard Users Create User First Last Name: Configuring a User interface screenshot 11 in Single Sign-On (SSO) with Auth0

If you provide a space-delimited full name as the Name, the system will accurately identify this information upon user creation; otherwise, it will duplicate the value that is in the Name field as the first name and the last name. This can be updated later on the SpreadsheetWeb side from the Account page.

Configure Auth 0 Dashboard Users Create User Change Name: Configuring a User interface screenshot 12 in Single Sign-On (SSO) with Auth0

You may also choose to verify your users email address by clicking on the Edit option under the Email property.

Configure Auth 0 Dashboard Users Create User Edit Email: Configuring a User interface screenshot 13 in Single Sign-On (SSO) with Auth0

Logging into SpreadsheetWeb Hub with Auth0

Go to the login page on your SpreadsheetWeb Hub server and select the Auth0 login:

Configure Auth 0 Login to Hub with Auth 0: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 14 in Single Sign-On (SSO) with Auth0

You will be redirected to the Auth0 login screen. Enter your credentials to log in.

Configure Auth 0 Login to Hub with Auth 0 Confirm: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 15 in Single Sign-On (SSO) with Auth0

You will receive the following message on the SpreadsheetWeb Hub side – click Register to continue:

Configure Auth 0 Login to Hub with Auth 0 Success: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 16 in Single Sign-On (SSO) with Auth0

If you have not been invited to this workspace, then you will receive the following error:

Configure Auth 0 Login to Hub with Auth 0 Error: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 17 in Single Sign-On (SSO) with Auth0

On a private server, make sure that you invite a user with that email address so that they can register their account:

Configure Auth 0 Login to Hub with Auth 0 Invite: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 18 in Single Sign-On (SSO) with Auth0

Then, ensure that the invite indicates that the login provider is Auth0.

Configure Auth 0 Login to Hub with Auth 0 Invited Users: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 19 in Single Sign-On (SSO) with Auth0

In this case, once the user logs in and clicks Register, an account will be automatically created and they will land in the system with their new account:

Configure Auth 0 Login to Hub with Auth 0 New Account Created: Logging into SpreadsheetWeb Hub with Auth0 interface screenshot 20 in Single Sign-On (SSO) with Auth0