Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 1.16 KB

README.md

File metadata and controls

19 lines (11 loc) · 1.16 KB

dotnet-core-example

dotnet core web api auth example - request user information though graph api using user delegation

Pre-requisite

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.

Test web api

swagger is available at /swagger

Docker

build: docker build -t oauth .

run: docker run -it --rm -p 5000:80 -e "AzureAd__ClientSecret=the_value" -e "AzureAd__ClientId=the_value" oauth