axum-login
axum-login copied to clipboard
Allow customizing extractor responses
Hello, Currently the library always returns a specified set of responses on errors. We can see it here and here.
In some cases the users may want to modify the returned values e.g. to implement RFC 7807. The library should possibly allow this kind of use-case the same way as the axum Json
extractor allows to specify a rejection response.
@maxcountryman any thoughts?
Agree. We should support this.
I'd welcome contributions to this end.
With v0.7.0
we take a different approach and I think this is no longer a problem.
I believe so, but we should probably use this task to create an example how to do it.