Skip to content

dotnet core web api auth example - req 3rd party resource though delegation

Notifications You must be signed in to change notification settings

keaaa/dotnet-core-example

Repository files navigation

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

About

dotnet core web api auth example - req 3rd party resource though delegation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published