Skip to content

How to use AsyncSCIMClient with check_server? #29

@vpatov

Description

@vpatov

Hello, thanks for writing a great series of libraries! I am having trouble understanding how to use the check_server functionality, while passing in the AsyncSCIMClient. My hunch is that this is not possible, because the check_server function flow seems to only be implemented synchronously. Is there anyway to get the benefit of the check_server test for my scim implementation, using an async client (and using the in-memory app object rather than hitting a server over network)?

Some more background: we have an ASGI FastAPI app. I originally tried mounting the SCIMProvider from scim2_server as WSGIMiddleware onto my FastAPI app, but since our app + DB layer is all async, I had to use async_to_sync in a bunch of places, and I ended up getting errors/issues with the event loop due to that. So instead, I opted to rewrite the SCIMProvider using an async interface (I replaced werkzeug with fastapi and starlette), while keeping all of the SCIM protocol logic + interfaces the same, such that I can use the same Backend interface, and leverage all the awesome work you folks have done with implementing SCIM. However, now I am having trouble finding good ways to leverage your library to also test the implementation, hence this issue.

Any help/guidance is much appreciated, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions