Getting Started with Resources - Web Server With Delegated Credentials - in Java

September 30, 2020 ยท View on GitHub

Azure Resource sample for delegated credentials. The application behind the auth file must have "http://localhost:8000" as a valid reply URL.

  • Creates a web server at http://localhost:8000
  • User opens a browser to authenticate
  • Lists service principals

Running this Sample

To run this sample:

Set the environment variable AZURE_AUTH_LOCATION with the full path for an auth file. See how to create an auth file.

git clone https://github.com/Azure-Samples/resources-java-web-server-with-delegated-credentials.git

cd resources-java-web-server-with-delegated-credentials

mvn clean compile exec:java

More information

http://azure.com/java

If you don't have a Microsoft Azure subscription you can get a FREE trial account here


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.