Java source samples for Azure Active Directory
The following table links to Java source you can use to access and work with Azure Active Directory (AD) in your apps.
| Sample | Description |
|---|---|
| Integrating Azure AD into a Java web application | Set up OAuth2 authentication in a Java web app. |
| Integrating Azure AD 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 an Azure AD 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 |