ArgumentException: The 'CallbackPath' option must be provided

Refresh

February 2019

Views

24 time

0

I implemented active directory authentication for my Asp.Net core 2 application. Every thing works fine on local but once I deployed the application to server it throws error "ArgumentException: The 'CallbackPath' option must be provided."

I added call back path on my appsettings file: tried both:

//"CallbackPath": "/signin-oidc"
    "CallbackPath": "/.auth/login/aad/callback"

1 answers

0

Я добавил ASPNETCORE_ENVIRONMENT, как развитие в

Azure -> App Service(My Appservice) -> Application Settings -> Application Settings