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

Feature request: support for axum-login (and consequently axum-sessions) #67

Open
UMR1352 opened this issue Jun 28, 2023 · 2 comments
Open

Comments

@UMR1352
Copy link

UMR1352 commented Jun 28, 2023

Route handlers that make use of axum-sessions::[Readable|Writable]Session or axum-login::AuthContext do not implement aide::OperationHandler.

error[E0277]: the trait bound `fn(ReadableSession) -> impl Future<Output = impl IntoApiResponse> {get_session_id}: OperationHandler<_, _>` is not satisfied

Same error with the other extractors.

@Wicpar
Copy link
Collaborator

Wicpar commented Jun 28, 2023

see #64, you should be able to implement those with the specified wrapper types.

@Wicpar
Copy link
Collaborator

Wicpar commented Sep 21, 2023

@UMR1352 #64 has been merged, it is now possible to implement it like #72 or inline using

NoApi(mut session): NoApi<[Readable|Writable]Session>

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

2 participants