Skip to content

[BUG][ASPNETCORE] Fallback to HttpContext as resource in authorization handler #22616

@alec-petersen

Description

@alec-petersen

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Referencing this announcement and this more helpful StackOverflow Answer, we need to make a change in the ApiAuthentication file with the AuthorizationHandler to fallback to HttpContext because that is the new default resource that will be provided to the handler.

openapi-generator version

7.18

I'll open a PR shortly with my suggested changes, which is just supporting both.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions