tamasfe/aide

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

UMR1352 opened this issue · 2 comments

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 commented

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

Wicpar commented

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

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