Activities of "jhan"

@maliming

I ran IdentityServer on docker container and can access the configuration from my browser. https://localhost:44326/.well-known/openid-configuration (I created self-signed certificate and mount it)

When HttpApi runs on the same docker container, I can authorise through swagger page. but I cannot when HttpApi runs from VS.

I read that the cors settings in IdentityServer only workes for the service running on the same container for localhost. but somethin weird is that when I remove the cors settings in IdentityServer, the blazor page does not even open.

I think that menas that some part works with cors setting, but some part does not with IdentityServer running on Docker.

I also tried adding below code in IdentityServer, but does not work.

Configure<IdentityServerOptions>(option => { option.IssuerUri = "https://127.0.0.1:44326/"; //DNS and IP });

https://stackoverflow.com/questions/44481538/identity-server-4-and-docker

I'm having exactly the same issue here.

v4.2.0 Module Template Solution

Everything runs well when I launch 3 projects (IdentityServer, HttpApi and Blazor) from VS.

I could manage to run IdentityServer and HttpApi on Docker but Blazor. so those two projects are running on docker and Blazor running form VS.

I got exactly the same type error above.

Access to XMLHttpRequest at 'https://localhost:44326/connect/userinfo' from origin 'https://localhost:44307' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. blazor.webassembly.js:1

System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() [16:16:31 ERR] Connection id "0HM68BS83K3PH", Request id "0HM68BS83K3PH:0000000B": An unhandled exception was thrown by the application. System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'System.String'. at Microsoft.IdentityModel.Protocols.ConfigurationManager1.GetConfigurationAsync(CancellationToken cancel) at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler.HandleAuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationHandler1.AuthenticateAsync() at Microsoft.AspNetCore.Authentication.AuthenticationService.AuthenticateAsync(HttpContext context, String scheme) at Microsoft.AspNetCore.Builder.ApplicationBuilderAbpJwtTokenMiddlewareExtension.<>c__DisplayClass0_0.<<UseJwtTokenMiddleware>b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application)

I tired using options.TokenValidationParameters.ValidateIssuer = false; but does not help

It would be nice if the template solution have docker settings by default.

I'm new to Docker, so I wonder if I put the command right place.

I added below command in each service that I'd like to run in docker-compose.yml

command: abp login <myID> -p <password>

it fails at build time.

So I tired another one right after dotnet restore in each dockerfiles RUN abp login <myID> -p <password>

but it still gives me the error that I need to login.

Do I have to do something to use "abp" command in docker container?

If you have a sample that I can run by replacing use id and password, it would be nice.

I'm currently working on v.4.12 Module template

Hi alper Can you give me more detail answer for solution 2? I tried to copy the licnese file all of the "Docker container's relavant directory". but I cannot make it work.

Windows user using linux conatiner.

According the conversation,

To modify the admin page,

  1. Delete current Lepton module package.
  2. Download the source code,
  3. include it in the project.
  4. modify and use it.

Do I understan it correctly?

For Team license users, it's not possible to change it. rght?

Showing 1 to 5 of 5 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35