from authlib.integrations.django_client import OAuth
from django.conf import settings

# # https://docs.authlib.org/en/latest/client/frameworks.html#frameworks-clients
oauth = OAuth()
oauth.register(
    name=settings.OAUTH["client_name"],
    client_id=settings.OAUTH["client_id"],
    client_secret=settings.OAUTH["client_secret"],
    request_token_url=None,
    request_token_params=None,
    authorize_params=settings.OAUTH["authorize_params"],
    client_kwargs=settings.OAUTH["client_kwargs"],
    server_metadata_url=settings.OAUTH["server_metadata_url"],
)
