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.

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,971 questions
SQL Server | Other
0 comments No comments
{count} vote

Accepted answer
  1. Yogi 351 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) 78,086 Reputation points Volunteer Moderator
    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

Your answer

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