Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 2.38 KB

File metadata and controls

27 lines (19 loc) · 2.38 KB

MSAL Java samples demonstrating server-side scenarios

About these samples

Overview

In MSAL server-side applications include web apps, web APIs, and long-running daemon services.

These scenarios are generally considered secure enough for MSAL to store credentials, allowing a single MSAL instance to make token requests on behalf of multiple users using the same basic credentials.

A group of web authentication samples using OpenId Connect and the Microsoft Identity platform

  1. Use MSAL Java in a web application to sign in users with Microsoft Entra ID
  2. Use MSAL Java in a web application to sign in users Azure Active Directory B2C
    • Source code can be found in the msal-b2c-web-sample directory, as well as the README for configuring and running the sample
  3. Use MSAL Java alongside Spring Security to sign in users with Microsoft Entra ID
  4. Use MSAL Java in a web application to sign in users with Microsoft Entra ID, and obtain an access token for a separate web API
    • Source code can be found in the msal-web-api-sample directory, as well as the README for configuring and running the sample

How to use the Microsoft Identity platform to access user data in a long-running, non-interactive process:

  1. An application which uses the client credentials flow with a certificate to obtain an access token for Microsoft Graph
  2. An application which uses the client credentials flow with a secret to obtain an access token for Microsoft Graph