Skip to content

Create An Application in Azure Active Directory.#

Introduction#

This example uses Azure Active Directory as the identity provider, but the same can be done with any identity provider supporting OAuth2 OpenID Connect protocol.

Prerequisites#

Azure account.

Step 1: Register Hopsworks as an application in your identity provider#

To use OAuth2 in Hopsworks you first need to create and configure an OAuth client in your identity provider. We will take the example of Azure AD for the remaining of this documentation, but equivalent steps can be taken on other identity providers.

Navigate to the Microsoft Azure Portal and authenticate. Navigate to Azure Active Directory. Click on App Registrations. Click on New Registration.

Create application
Create application

Enter a name for the client such as hopsworks_oauth_client. Verify the Supported account type is set to Accounts in this organizational directory only. And Click Register.

Name application
Name application

Step 2: Get the necessary fields for client registration#

In the Overview section, copy the Application (client) ID field. We will use it in Identity Provider registration under the name Client id.

Copy client ID
Copy client ID

Click on Endpoints and copy the OpenId Connect metadata document endpoint excluding the .well-known/openid-configuration part. We will use it in Identity Provider registration under the name Connection URL.

Endpoint
Endpoint

Click on Certificates & secrets, then Click on New client secret.

New client secret
New client secret

Add a description of the secret. Select an expiration period. And, Click Add.

Client secret creation
Client secret creation

Copy the secret. This will be used in Identity Provider registration under the name Client Secret.

Client secret creation
Client secret creation

Click on Authentication. Then click on Add a platform

Add a platform
Add a platform

In Configure platforms click on Web.

Configure platform: Web
Configure platform: Web

Enter the Redirect URI and click on Configure. The redirect URI is HOPSWORKS-URI/callback with HOPSWORKS-URI the URI of your Hopsworks cluster.

Configure platform: Redirect
Configure platform: Redirect