Identity Server with .net 6 in Azure Linux Web App

Jackeline Rodriguez 26 Reputation points
2022-09-01T11:07:23.103+00:00

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.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,164 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,389 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,713 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
0 comments No comments
{count} vote

Accepted answer
  1. Yogi 346 Reputation points
    2022-09-02T09:49:39.33+00:00

    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. 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.

    0 comments No comments