Base solution for your next web application

Activities of "nagib.aouini"

Question

Solved

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.3
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core 5

Questions

  1. We activated the IdentitServer
  2. We access the .well-known/openid-configuration properly

"IdentityServer": { "IsEnabled": "true", "Authority": "https://localhost:44301/", "ApiName": "default-api",

The endpoint introspect https:/<app>/connect/introspect return an Error 404 ! like explained here https://identityserver4.readthedocs.io/en/latest/endpoints/introspection.html

<head> <title>ADMIN - Error</title>

&lt;link href=&quot;/view-resources/Views/Error/Index.css?v=8chyDsqrMk2dqzEb9NwpgKudCaENhDdlvh6dpWmjNzY&quot; rel=&quot;stylesheet&quot; /&gt;

</head> <div class="m-error_container"> <span class="m-error_title"> <h1> Error! </h1> </span> <p class="m-error_subtitle"> An internal error occurred during your request! </p> <p class="m-error_description"> </p> </div>

How we can access all IdentityServer endpoint so an external app can check accessToken and userInfo ?

Hi We tried to use the Dockerfile on the MVC project to build a docker image We use latest ASP.NET CORE MVC JQUERY

Here is the Generated Dockerfile by ASPNETZERO

  1. When we build the Docker image, the deployed image does not work because the minification process never happens
  2. the website then have error 404

Can you please provide exact Dockerfile include the minification process (npm run build)

-->

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443

FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["src/ABC.ADMIN.Web.Mvc/ABC.ADMIN.Web.Mvc.csproj", "src/ABC.ADMIN.Web.Mvc/"] COPY ["src/ABC.ADMIN.Web.Core/ABC.ADMIN.Web.Core.csproj", "src/ABC.ADMIN.Web.Core/"] COPY ["src/ABC.ADMIN.Application/ABC.ADMIN.Application.csproj", "src/ABC.ADMIN.Application/"] COPY ["src/ABC.ADMIN.Application.Shared/ABC.ADMIN.Application.Shared.csproj", "src/ABC.ADMIN.Application.Shared/"] COPY ["src/ABC.ADMIN.Core.Shared/ABC.ADMIN.Core.Shared.csproj", "src/ABC.ADMIN.Core.Shared/"] COPY ["src/ABC.ADMIN.Core/ABC.ADMIN.Core.csproj", "src/ABC.ADMIN.Core/"] COPY ["src/ABC.ADMIN.EntityFrameworkCore/DUOKEY.ADMIN.EntityFrameworkCore.csproj", "src/ABC.ADMIN.EntityFrameworkCore/"] COPY ["src/ABC.ADMIN.GraphQL/ABC.ADMIN.GraphQL.csproj", "src/ABC.ADMIN.GraphQL/"] RUN dotnet restore "src/ABC.ADMIN.Web.Mvc/ABC.ADMIN.Web.Mvc.csproj" COPY . . WORKDIR "/src/src/ABC.ADMIN.Web.Mvc" RUN dotnet build "ABC.ADMIN.Web.Mvc.csproj" -c Release -o /app/build

FROM build AS publish RUN dotnet publish "ABC.ADMIN.Web.Mvc.csproj" -c Release -o /app/publish

FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "ABC.ADMIN.Web.Mvc.dll"]

Showing 1 to 3 of 3 entries