Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorize clearing/reset when switching the app definitions (from swagger ui) with the .net 6 #250

Closed
nikhilgoud opened this issue Jan 10, 2023 · 2 comments
Assignees
Labels
needs-more-info Autor needs more info waiting-8-days Closing after 8 days of waiting for the additional info requested.

Comments

@nikhilgoud
Copy link

Describe the bug
We have recently upgraded our .netcore web API's to .net6.0 from .netcore3.1
After upgrade the Authorize is getting reset on changing the app definiton, did we miss any changes.
image
image

Package references

<ItemGroup>
    <PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.0" />
    <PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.17.0" />
    <PackageReference Include="MMLib.SwaggerForOcelot" Version="6.0.0" />
    <PackageReference Include="NLog" Version="5.0.4" />
    <PackageReference Include="NLog.Web.AspNetCore" Version="5.1.4" />
    <PackageReference Include="Ocelot" Version="18.0.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.9" />
    <PackageReference Include="Ocelot.Provider.Kubernetes" Version="18.0.0" />
    <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
    <PackageReference Include="StackExchange.Redis" Version="2.6.66" />
  </ItemGroup>

To Reproduce
If it is a possible attache:

  1. Original downstream swagger.json.
    --
  2. Ocelot ReRoutes configuration.
"Routes": [
    {
      "UpstreamPathTemplate": "/swagger/docs/API/app1-api",
      "DownstreamPathTemplate": "/swagger/App1/swagger.json",
      "DownstreamScheme": "https",
      "ServiceName": "app1-api",
      "DangerousAcceptAnyServerCertificateValidator": true
    },
    {
      "UpstreamPathTemplate": "/swagger/docs/API/app2-api",
      "DownstreamPathTemplate": "/swagger/App2/swagger.json",
      "DownstreamScheme": "https",
      "ServiceName": "app2-api",
      "DangerousAcceptAnyServerCertificateValidator": true
    },
    {
      "UpstreamPathTemplate": "/swagger/docs/API/app3-api",
      "DownstreamPathTemplate": "/swagger/App3/swagger.json",
      "DownstreamScheme": "https",
      "ServiceName": "app3-api",
      "DangerousAcceptAnyServerCertificateValidator": true
    }
]
@Burgyn
Copy link
Owner

Burgyn commented Jan 12, 2023

Hi @nikhilgoud,

thanks for your report.
Unfortunately I can't reproduce the problem. Could you please prepare a demo example?

Thanks.

@Burgyn Burgyn added waiting-8-days Closing after 8 days of waiting for the additional info requested. needs-more-info Autor needs more info labels Jan 12, 2023
@github-actions
Copy link

Closing after 8 days of waiting for the additional info requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info Autor needs more info waiting-8-days Closing after 8 days of waiting for the additional info requested.
Projects
None yet
Development

No branches or pull requests

2 participants