Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Overview of internal and external URL's with ID4 setup #5

Open
davidzwa opened this issue Dec 6, 2020 · 1 comment
Open

Overview of internal and external URL's with ID4 setup #5

davidzwa opened this issue Dec 6, 2020 · 1 comment

Comments

@davidzwa
Copy link
Contributor

davidzwa commented Dec 6, 2020

These listings provide an overview of development ports to see what can be configured. This is not a security leak of any kind, as this is a developer's choice.

Angular (dev == prod)

  • oAuth issuer https://localhost:44325
  • API https://localhost:44325

Server launchSettings

  • IIS applicationUrl https://localhost:44325 - SSL port 44325
  • Kestrel applicationUrl https://localhost:44325
  • docker "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", - SSL "useSSL": true

Server - Host appsettings.json

  • App::SelfUrl https://localhost:44325
  • AuthServer::Authority https://localhost:44325
  • AuthServer::ValidIssuer null
  • AuthServer::RequireHttpsMetaData true

Server - Host appsettings.DockerLocal.json (unused)

  • App::SelfUrl https://localhost:44325
  • AuthServer::Authority https://localhost:44325
  • AuthServer::ValidIssuer https://localhost:443 (internal port)
  • AuthServer::RequireHttpsMetaData true

Server Test - API Client ConsoleTestApp appsettings.json

  • RemoteServces::Default::BaseUrl "https://localhost:44325"
  • IdentityClients::Default::Authority: "https://localhost:44325"

DbMigrator - appsettings.json

  • SSO_Web MVC "RootUrl": "https://localhost:44352"
  • SSO_App CORS "RootUrl": "http://localhost:4200"
  • SSO_Blazor CORS "RootUrl": "https://localhost:44307"
  • SSO_Swagger CORS "RootUrl": "https://localhost:44353"
@davidzwa
Copy link
Contributor Author

These listings provide an overview of development ports to see what can be configured. This is not a security leak of any kind, as this is a developer's choice.

Angular (dev == prod)

  • oAuth issuer https://localhost:44333
  • API https://localhost:44333

Server launchSettings

  • IIS applicationUrl https://localhost:44325 - SSL port 44325
  • Kestrel applicationUrl https://localhost:44325
  • docker "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", - SSL "useSSL": true

Server - Host appsettings.json

  • App::SelfUrl https://localhost:44333
  • AuthServer::Authority https://localhost:44333
  • AuthServer::ValidIssuer null
  • AuthServer::RequireHttpsMetaData true

Server - Host appsettings.DockerLocal.json (unused)

  • App::SelfUrl https://localhost:44325
  • AuthServer::Authority https://localhost:44325
  • AuthServer::ValidIssuer https://localhost:443 (internal port)
  • AuthServer::RequireHttpsMetaData true

Server Test - API Client ConsoleTestApp appsettings.json

  • RemoteServces::Default::BaseUrl "https://localhost:44325"
  • IdentityClients::Default::Authority: "https://localhost:44325"

DbMigrator - appsettings.json

  • SSO_Web MVC "RootUrl": "https://localhost:44333"
  • SSO_App CORS "RootUrl": "http://localhost:4200"
  • SSO_Blazor CORS "RootUrl": "https://localhost:44307"
  • SSO_Swagger CORS "RootUrl": "https://localhost:44333"

Somehow the ValidIssuer being null doesnt matter now for docker, when we make the internal port the same at the outside port. Makes sense as https://localhost:44333 inside equals https://localhost:44333 outside the container. Nice for the merged ID4 solution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant