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

Feedback for “Security – OAS Tools” #27

Open
ShyMischief opened this issue May 30, 2023 · 0 comments
Open

Feedback for “Security – OAS Tools” #27

ShyMischief opened this issue May 30, 2023 · 0 comments

Comments

@ShyMischief
Copy link

The handler function may return a result, typically the decoded token in case of HTTP Authentication. This result is saved to res.locals.oas.security. in order to make it available to controllers later in the execution.

When trying to implement some security handlers, this phrase in the documentation doesn't add a whole lot to go off of. If I want the authentication to fail there, do I throw an Error, return null/undefined, or some other combination?

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

No branches or pull requests

1 participant