Edit

Share via


Java source samples for Microsoft Entra ID

The following table links to Java source you can use to access and work with Microsoft Entra ID in your apps.

Sample Description
Integrating Microsoft Entra ID into a Java web application Set up OAuth2 authentication in a Java web app.
Integrating Microsoft Entra ID into a Java command line using username and password Obtain a JWT access token through OAuth 2.0, then use the access token to authenticate with a Microsoft Entra protected web API.
Manage users, groups, and roles with the Graph API Manage users, groups, roles, and service principals with the Graph API using the management API.
Manage service principals Create a service principal for an application, assign it a role, and use the service principal to access resources in the subscription