dotnet core web api auth example - request user information though graph api using user delegation
Use guide - Create an Azure Active Directory application. Ignore steps not directly referenced to from here.
Use Application (client) ID from step Get values for signing in and client secret from step Create a new application secret as environment variables AzureAd__ClientId
and AzureAd__ClientSecret
. ClientSecret should not be checked into git
These need to be included when running the application.
swagger is available at /swagger
build: docker build -t oauth .
run: docker run -it --rm -p 5000:80 -e "AzureAd__ClientSecret=the_value" -e "AzureAd__ClientId=the_value" oauth