Skip to content

[REQ][typescript] Enable passing custom SecurityAuthentication to API #11317

@davidgamero

Description

@davidgamero

Is your feature request related to a problem? Please describe.

Given the experimental state of this generator, it would be beneficial to enable external SecurityAuthentication providers via a defaultSecurityAuthentication method on the generated API Classes.

This allows development of SecurityAuthentication classes without impacting the template, making it easier to expand functionality.

This would function similarly to the old typescript method setDefaultAuthentication(auth: Authentication

Describe the solution you'd like

Add a defaultSecurityAuthentication(auth: defaultSecurityAuthentication) method to generated api objects that overrides configured SecurityAuthentications like BearerToken

Additional context

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