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

Is it possible to redirect the request when an authorization error occurs? (OpenAPI) #744

Open
jessebadry opened this issue Feb 7, 2024 · 0 comments
Labels
question Further information is requested

Comments

@jessebadry
Copy link

jessebadry commented Feb 7, 2024

Using the Open API's SecurityScheme is it possible to redirect when the checker function returns as unauthorized? currently plain text returns that read's "authorization error" (with status) is the default. I'd like to redirect to another route (that just so happens to serve an html page). Is this possible or should I change my approach?

This is specifically regarding a ApiKey checker where the API-Key is not supplied, how could I redirect?

@jessebadry jessebadry added the question Further information is requested label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant