Authenticate users only with their credentials to azure resource manager using java sdk for a single-tenant application

Sashin Sahasra 21 Reputation points
2021-07-08T12:01:27.013+00:00

I want to create an application using java sdk that can create storage accounts on azure cloud. So the user needs to authenticate to azure resource manager via user credentials and after successful authentication, user is able to create a storage account via the application. Is there any way to access resource manager by using only user credentials via java sdk?

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
610 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,679 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,425 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,546 Reputation points
    2021-07-09T15:58:23.26+00:00

    Hello @Sashin Sahasra ,

    Thanks for reaching out.

    Here are some guidance to achieve above scenario:

    • Onboard authentication and authorization libraries into your application using Microsoft identity platform. Please find Java sample from this article.
    • Get Azure AD token for respective user from Azure AD using Auth code flow and make REST API call to Azure Resource Manager per this article

    At a high level, the entire authentication flow for an application looks a bit like this:
    113347-image.png

    Example of creating an Azure Storage account with the REST API, and refer this article to learn more about Azure Storage REST API Reference.

    Hope this helps.

    Regards,
    Siva Kumar Selvaraj

    ------
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments