Is your project working on locally? If not then IdentityServer settings might not be correct. See this tutorial - IdentityServer with ASP.NET Core Identity. If your project works properly in local pc then on moving to Azure WebApp it is giving "Network Error" since the port might not be exposted. The azure webapp running IdentityServer should be exposed to outside world.
Identity Server with .net 6 in Azure Linux Web App
Hello, It has been several days trying to solve this problem and I can't find a solution.
I am having a problem creating a sample with Standalone Identity Server, .net 6 in Azure WebApp.
I am using the options by default to create Blazor Web Assembly App -> .net 6.0 -> Configure HTTPS , Asp.NET Core Hosted, Progressive Web App, Do not use top level statement.
Then I modified it to use Sqlite database with Identity Server 5 instead of 6 not to use "Duende".
I always get the following error:
There was an error trying to log you in: 'Network Error' when trying to log in.
I have tried already a lot of things.
I uploaded the entire solution in here.
https://github.com/RmCxRamq/TestAuthentication
I would appreciated any help you could give me.
Thanks a lot.
1 additional answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 55,686 Reputation points
2022-09-07T16:30:21.15+00:00 with Azure WebApps, SqlLite is not a valid solution for identity server. this because sqlite is an in-memory database, and Azure WebApps is a web farm. You would need to use a single instance VM.