Skip to content

Commit

Permalink
Remove cyclic dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 committed Sep 24, 2024
1 parent 98e6ab1 commit 0f0146d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mwdb/model/oauth.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from typing import Type

from mwdb.core.oauth.provider import OpenIDProvider
from mwdb.core.plugins import openid_provider_classes

from . import db


def get_oidc_provider_class(provider_name: str) -> Type[OpenIDProvider]:
from mwdb.core.plugins import openid_provider_classes

return openid_provider_classes.get(provider_name, OpenIDProvider)


Expand Down

0 comments on commit 0f0146d

Please sign in to comment.