Kullanıcı Kılavuzu

Microsoft Authentication Library (MSAL)

Microsoft Authentication Library (MSAL)

Microsoft Authentication Library (MSAL) is a library developed by Microsoft for authentication and authorization processes. In Kuika, you can quickly and easily configure authentication processes using MSAL. This training content explains authentication processes using MSAL step by step.

This training content consists of the following topics:

  1. Working with the Microsoft Authentication Library authentication provider.
  2. Anatomy of the MSAL Settings module.
  3. Creating an application in the Azure portal.
  4. Adding a platform.
  5. Defining the MSAL configuration in the Configuration Manager Module in Kuika.

Working with the Microsoft Authentication Library Authentication Provider

  • Log in to the Kuika platform.
  • Select the project you will work on from the Apps screen.
  • Click the Configuration Manager module from the left menu.
  • Enter a name for the configuration and click the CREATE button.
  • In the App Settings tab, select one of the MSAL options in the Authentication & Authorization section or create a new configuration with ADD NEW.

Content added by Global Configuration in Workspace is shown as read-only or hidden for unauthorized users.

Anatomy of the MSAL Settings Module

  • Name: The name that identifies the Authentication Provider.
  • Client ID: The unique ID of the application created in the Azure Portal.
  • Client Secret: The secret key used to authenticate the application.
  • Authority: The URL used for authentication (e.g. https://login.microsoftonline.com/{tenant} or https://login.microsoftonline.com/common/).
  • Scopes: Permissions that determine which resources the app requests access to (e.g. user.read).
  • Keystore Base64: Base64 format keystore used for Android applications.
  • Cache Location: Determines the location where authentication credentials and tokens are stored.
  • Keystore Hash: The hash information required for Android applications.
  • After entering the information, click the CREATE button.

Creating an Application in Azure Portal

  • Log in to portal.azure.com.
  • Select Entra ID or search for it in the search field.
  • Click App registrations and click the New registration button.
  • Name the application, make the appropriate selection under Supported Account Types and click Register.

Registering App Information

  • Save the Application Client ID and Tenant ID.
  • In the Certificates & secrets section, click on the New client secret button.
  • Fill in the Description field, select the expiration time and click the Add button.
  • Save the resulting Client Secret value.

Configure API Permissions

  • Open the API permissions section.
  • User.Read is present by default.
  • Add the required permissions by clicking the Add a permission button.
  • Select Microsoft Graph from the panel on the right and add the required permissions.
After adding permission, the previous screen is returned.

Add MSAL Platform

  • In the Overview section, click on Add a Redirect URL.
  • Click the Add a platform button.

Web Platform

  • Click on the Web button.
  • In the Redirect URLs field, create a Redirect URL for the web application (e.g. https://platform.kuika.com/msalredirect).
  • In the Front-channel logout URL field, create a Logout URL (e.g. https://platform.kuika.com/logout).
  • Click the Configure button.

iOS Platform

  • Click the iOS button, enter the Bundle IDand click Configure.

Android Platform

  • Click the Android button, enter the required information and click the Configure button.

MSAL Configuration in Configuration Manager Module

  • Open the Configuration Manager module.
  • Create a new configuration.
  • In the App Settings tab, select the MSAL configuration or create a new setting.
  • Enter the required information in the MSAL Setting modal.
  • Complete the process by clicking the CREATE button.

After completing these steps, you can perform authentication and access authorized resources using MSAL in your application.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar