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

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

Closed
davidgamero opened this issue Jan 14, 2022 · 1 comment
Closed

Comments

@davidgamero
Copy link
Contributor

davidgamero commented Jan 14, 2022

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

@davidgamero
Copy link
Contributor Author

merged #11321

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

No branches or pull requests

1 participant