Share via

Can you help me when update identity server 4 code from core 2.1 to core 3.1 . Identity server4 project is not working with .net core 3.1. We are not able to redirect login page in dot net core 3.1 with identity server4..

Anuj Singh 1 Reputation point
2021-05-13T17:59:30.98+00:00

96455-image.png

96448-image.png

96466-image.png

https://localhost:5001/Identity/Account/Login?ReturnUrl=%2F

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Developer technologies | ASP.NET Core | Other

2 answers

Sort by: Most helpful
  1. Yinqiu Yao-MSFT 236 Reputation points
    2021-06-01T01:17:28.71+00:00

    Hi @Anuj Singh

    Please note that the order of your middleware should be:

    app.UseAuthentication();  
    app.UseAuthorization();  
    

    Their order is very important.

    Best Regards
    Yinqiu

    Was this answer helpful?

    0 comments No comments

  2. Anonymous
    2021-05-14T07:12:35.703+00:00

    Hi,
    Based on your description, this issue seems related to windows apinet, thus we added dotnet-aspnet-core-general tag so that it would be easier for you to get support from aspnet engineers.
    Thanks for your understanding.
    Best regards,
    Danny

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.