washed-out / asgi-gssapi

ASGI Kerberos/GSSAPI Authentication Middleware with delegation support
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

async callback support #1

Closed stephanm closed 2 years ago

stephanm commented 2 years ago

Hi, currently auth_required_callback values don't get awaited. This patch adds support for async callbacks and still retains compatibility to sync functions. I just modified one of the test cases as completely copying one case seemed a bit like overkill to me. Hopefully this can be merged! Cheers, Stephan

washed-out commented 2 years ago

Sorry for late reply, this is awesome! I'll expand the tests and release a new version ASAP.