How can we improve Azure Web Apps?

Get current identity in aspnet core app when azure app service authentication is enabled

Currently when using an aspnet core application with azure app service authentication, the current identity is never set.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    lplp shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    declined  ·  Azure App Service TeamAdminAzure App Service Team (Admin, Microsoft Azure) responded  · 

    Thanks for your feedback!

    This is a really neat workaround to get the identity of a currently authenticated user!
    At this time we are not considering adding 1st party support for this method to ensure the highest level of compatibility with the multi-tennant hosting level of App Service.
    Extracting the currently authenticated user from each incoming request ensures your application can be migrated between web workers and is fully compatible with our scaling operations.

    Alex
    Azure App Service Team

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base