profile
viewpoint
Trần Huy Duẫn DuanTranHuy Viet Nam

DuanTranHuy/AngularASPNETCoreOAuth 0

Sample project demonstrating user authentication and identity with Angular, Asp.Net Core and IdentityServer4

DuanTranHuy/Awesome-Design-Tools 0

The best design tools for everything 👉

DuanTranHuy/bip39 0

A web tool for converting BIP39 mnemonic codes

DuanTranHuy/BlockchainWalletApi 0

Blockchain wallet api is using NestJS framework and TatumIO. Ledger Wallet support.

DuanTranHuy/EthereumCasts 0

Learning BlockChain

issue commentskoruba/IdentityServer4.Admin

How to run Identity.Admin in docker

cd shared/nginx/certs mkcert --install copy $env:LOCALAPPDATA\mkcert\rootCA.pem ./cacerts.pem -> copy $env:LOCALAPPDATA\mkcert\rootCA-key.pem ./cacerts.pem -> copy $env:LOCALAPPDATA\mkcert\rootCA.pem ./cacerts.crt make sure it copy a file. This step may create folder instead of copy file

Mutuduxf

comment created time in a month

issue openedbravecobra/identityserver-ui

Internet domain issue

Hi @bravecobra

I'm trying to point my domain to this Skoruba Admin UI. When i run the docker-compose everything is ok. I can access to sts and login. But when i access to admin and api this error is showed.

System.Exception: An error was encountered while handling the remote login.
 ---> System.Exception: Correlation failed.
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync()
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.CspMiddleware.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at NWebsec.AspNetCore.Middleware.Middleware.MiddlewareBase.Invoke(HttpContext context)
   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

This is my docker-compose.yml

version: '3.4'
services:
  nginx-proxy:
    image: jwilder/nginx-proxy
    container_name: nginx-proxy
    ports:
      - '80:80'
      - '443:443'
    volumes:
      - '/var/run/docker.sock:/tmp/docker.sock:ro'
      - "/etc/nginx/vhost.d"
      - /usr/share/nginx/html
      - './shared/nginx/certs:/etc/nginx/certs:rw'
    networks:
      proxy: null
      identityserverui:
        aliases:
          - dev-sts.blockchainapi.tech
          - dev-admin.blockchainapi.tech
          - dev-admin-api.blockchainapi.tech
    restart: always
  ssl-generator:
    image: jrcs/letsencrypt-nginx-proxy-companion
    volumes_from:
      - nginx-proxy
    volumes:
      - '/var/run/docker.sock:/var/run/docker.sock:ro'
    networks:
      proxy: null
      identityserverui:
        aliases:
          - dev-sts.blockchainapi.tech
          - dev-admin.blockchainapi.tech
          - dev-admin-api.blockchainapi.tech
  identityserver.admin:
    image: '${DOCKER_REGISTRY-}skoruba-identityserver4-admin'
    build:
      context: .
      dockerfile: src/IdentityServer.Admin/Dockerfile
    container_name: skoruba-identityserver4-admin
    environment:
      - VIRTUAL_HOST=dev-admin.blockchainapi.tech
      - LETSENCRYPT_HOST= dev-admin.blockchainapi.tech
      - 'ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__DataProtectionDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'AdminConfiguration__IdentityAdminBaseUrl=https://dev-admin.blockchainapi.tech'
      - 'AdminConfiguration__IdentityAdminRedirectUri=https://dev-admin.blockchainapi.tech/signin-oidc'
      - 'AdminConfiguration__IdentityServerBaseUrl=https://dev-sts.blockchainapi.tech'
      - AdminConfiguration__RequireHttpsMetadata=true
      - 'IdentityServerData__Clients__0__ClientUri=https://dev-admin.blockchainapi.tech'
      - 'IdentityServerData__Clients__0__RedirectUris__0=https://dev-admin.blockchainapi.tech/signin-oidc'
      - 'IdentityServerData__Clients__0__FrontChannelLogoutUri=https://dev-admin.blockchainapi.tech/signin-oidc'
      - 'IdentityServerData__Clients__0__PostLogoutRedirectUris__0=https://dev-admin.blockchainapi.tech/signout-callback-oidc'
      - 'IdentityServerData__Clients__0__AllowedCorsOrigins__0=https://dev-admin.blockchainapi.tech'
      - 'IdentityServerData__Clients__1__RedirectUris__0=https://dev-admin-api.blockchainapi.tech/swagger/oauth2-redirect.html'
      - 'Serilog__WriteTo__1__Args__connectionString=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - DockerConfiguration__UpdateCaCertificate=true
      - ASPNETCORE_ENVIRONMENT=Development
    command: dotnet IdentityServer.Admin.dll /seed
    depends_on:
      - db
      - identityserver.sts.identity
    volumes:
      - './shared/serilog.json:/app/serilog.json'
      - './shared/identitydata.json:/app/identitydata.json'
      - './shared/identityserverdata.json:/app/identityserverdata.json'
      - './shared/nginx/certs/cacerts.crt:/usr/local/share/ca-certificates/cacerts.crt'
    networks:
      identityserverui: null
  identityserver.admin.api:
    image: '${DOCKER_REGISTRY-}skoruba-identityserver4-admin-api'
    build:
      context: .
      dockerfile: src/IdentityServer.Admin.Api/Dockerfile
    container_name: skoruba-identityserver4-admin-api
    environment:
      - VIRTUAL_HOST=dev-admin-api.blockchainapi.tech
      - LETSENCRYPT_HOST= dev-admin-api.blockchainapi.tech
      - AdminApiConfiguration__RequireHttpsMetadata=true
      - 'AdminApiConfiguration__ApiBaseUrl=https://dev-admin-api.blockchainapi.tech'
      - 'AdminApiConfiguration__IdentityServerBaseUrl=https://dev-sts.blockchainapi.tech'
      - 'ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__AdminLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__AdminAuditLogDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__DataProtectionDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - DockerConfiguration__UpdateCaCertificate=true
      - ASPNETCORE_ENVIRONMENT=Development
    volumes:
      - './shared/serilog.json:/app/serilog.json'
      - './shared/nginx/certs/cacerts.crt:/usr/local/share/ca-certificates/cacerts.crt'
    networks:
      identityserverui: null
  identityserver.sts.identity:
    image: '${DOCKER_REGISTRY-}skoruba-identityserver4-sts-identity'
    build:
      context: .
      dockerfile: src/IdentityServer.STS.Identity/Dockerfile
    container_name: skoruba-identityserver4-sts-identity
    environment:
      - VIRTUAL_HOST=dev-sts.blockchainapi.tech
      - LETSENCRYPT_HOST= dev-sts.blockchainapi.tech
      - 'ConnectionStrings__ConfigurationDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__PersistedGrantDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__IdentityDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'ConnectionStrings__DataProtectionDbConnection=Server=db;Database=IdentityServer4Admin;User Id=postgres;Password=postgres;'
      - 'AdminConfiguration__IdentityAdminBaseUrl=https://dev-admin.blockchainapi.tech'
      - 'AdvancedConfiguration__PublicOrigin=https://dev-sts.blockchainapi.tech'
      - 'AdvancedConfiguration__IssuerUri=https://dev-sts.blockchainapi.tech'
      - DockerConfiguration__UpdateCaCertificate=true
      - ASPNETCORE_ENVIRONMENT=Development
    depends_on:
      - db
    volumes:
      - './shared/serilog.json:/app/serilog.json'
      - './shared/nginx/certs/cacerts.crt:/usr/local/share/ca-certificates/cacerts.crt'
    networks:
      identityserverui:
        aliases:
          - dev-sts.blockchainapi.tech
  db:
    image: postgres:latest
    container_name: skoruba-identityserver4-db
    ports:
      - "5432:5432"
    restart: always
    volumes:
      - dbdata:/var/lib/postgresql/indentityserver
    environment:
      POSTGRES_USER: "postgres"
      POSTGRES_PASSWORD: "postgres"
      POSTGRES_DB: "IdentityServer4Admin"
    networks:
      identityserverui: null
volumes:
  dbdata:
    driver: local
networks:
  proxy:
    driver: bridge
  identityserverui:
    driver: bridge

Could you help me or make a guide for pointing the internet domain to this one please? Thank you so much.

created time in 2 months

push eventBlockchainApi-tech/connector-js

Trần Huy Duẫn

commit sha 6a6987bc3bac8d53a92b2104cceb2c7414318975

Update Readme

view details

push time in 2 months

push eventBlockchainApi-tech/connector-js

Trần Huy Duẫn

commit sha 1bb603e4daa466c0def9cc9cac21e5cb29008e79

Bump version 1.0.2

view details

push time in 2 months

push eventBlockchainApi-tech/connector-js

Trần Huy Duẫn

commit sha aac6b01146fee4c8e43e33f81597381b7271b7b9

Update readme

view details

push time in 2 months

push eventBlockchainApi-tech/connector-js

Trần Huy Duẫn

commit sha 3871e98eb5e75e514d1a3b8848c775dad3013932

Update readme

view details

push time in 2 months

push eventBlockchainApi-tech/connector-js

Trần Huy Duẫn

commit sha fad9ed2c8326c739e0bfa1864a538b69826cb22e

BlockchainApi connector-js plugin

view details

push time in 2 months

push eventDuanTranHuy/blockchainapi-connector

Trần Huy Duẫn

commit sha 7d065cd812a97dd5ff7b622321118a0c9765df0d

Bump version

view details

push time in 2 months

push eventDuanTranHuy/blockchainapi-connector

Trần Huy Duẫn

commit sha bdf0a8b5a88421bf7daab70fb2f4b97d06ffc7f6

Bump version

view details

push time in 2 months

push eventDuanTranHuy/blockchainapi-connector

Trần Huy Duẫn

commit sha a53071bdec6780a960b71726df8244a065d4b489

Update npm package

view details

push time in 2 months

create barnchDuanTranHuy/blockchainapi-connector

branch : main

created branch time in 2 months

created repositoryDuanTranHuy/blockchainapi-connector

created time in 2 months

push eventDuanTranHuy/blockchainapi-connector

Trần Huy Duẫn

commit sha 890f250c670bcf09f8c9ae5688887f7b74518e39

Add connector lib

view details

Trần Huy Duẫn

commit sha ff355c353cd26efd34d1250f8b00f0006ec0ca9b

Merge pull request #3 from DuanTranHuy/feature/blockchain-api-connector Connector Lib

view details

push time in 2 months

create barnchDuanTranHuy/blockchainapi-connector

branch : master

created branch time in 2 months

created repositoryDuanTranHuy/blockchainapi-connector

created time in 2 months

startedDuanTranHuy/blockchainapi-js

started time in 2 months

create barnchDuanTranHuy/blockchainapi-js

branch : main

created branch time in 2 months

created repositoryDuanTranHuy/blockchainapi-js

created time in 2 months

push eventDuanTranHuy/BlockchainWalletApi

Tran Huy Duan

commit sha 5183c2c908fa3aefc4c970027c27ac4710d1f12a

Update xrp api

view details

push time in 2 months

push eventDuanTranHuy/BlockchainWalletApi

Tran Huy Duan

commit sha 27c2f6c5c1d95893731c939921431ae391793943

Update ada balance

view details

push time in 2 months

push eventDuanTranHuy/BlockchainWalletApi

Tran Huy Duan

commit sha c5ced800bce3fac60c13e3feba3cc50dab8146aa

Update to use global pipes

view details

push time in 2 months

push eventDuanTranHuy/BlockchainWalletApi

Tran Huy Duan

commit sha 2b2ee52220c22512569b3465874dafae34f7224f

Update bitcoin

view details

push time in 2 months

push eventDuanTranHuy/BlockchainWalletApi

Tran Huy Duan

commit sha 4eb2728fc2229585f5ae2b5b94d764673c389644

Update testnet param

view details

push time in 2 months

push eventDuanTranHuy/tatum-js

Samuel Sramko

commit sha 00129a7889e6c86f74e722e8a9ecf25df951e2d1

fix transfer erc20 BSC token add GAMEE token fix broken algo link

view details

Trần Huy Duẫn

commit sha 7724cb1b5dc0c3c55259806ae8ec13835f501268

Merge branch 'master' into bugfix/xrpGetAccountTransactions

view details

push time in 2 months

more