Access token request with a certificate - java sample

AzurianForNow 1 Reputation point
2021-04-22T10:13:53.043+00:00

Hi
I am looking for java example to get access token, and then get secrets from Key vault

https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow

The code samples are only dot net? not java? Not sure why java samples are ignored

https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow#code-samples-and-other-documentation

I thought the below github is good, but it also failed me

https://github.com/Azure-Samples/key-vault-java-certificate-authentication

I am unable to understand the workings...does it use tenant id and connect to Azure AD and get a token? which couldnt find

Please can some direct me to java example that uses tenant id, client id, scope, certificate and creates authentication context etc

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,448 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.