constants.py 1.1 KB

123456789101112131415161718192021
  1. from allauth.socialaccount.providers.digitalocean.views import DigitalOceanOAuth2Adapter
  2. from allauth.socialaccount.providers.gitea.views import GiteaOAuth2Adapter
  3. from allauth.socialaccount.providers.github.views import GitHubOAuth2Adapter
  4. from allauth.socialaccount.providers.gitlab.views import GitLabOAuth2Adapter
  5. from allauth.socialaccount.providers.google.views import GoogleOAuth2Adapter
  6. from allauth.socialaccount.providers.keycloak.views import KeycloakOAuth2Adapter
  7. from allauth.socialaccount.providers.microsoft.views import MicrosoftGraphOAuth2Adapter
  8. from allauth.socialaccount.providers.nextcloud.views import NextCloudAdapter
  9. from allauth.socialaccount.providers.openid_connect.views import OpenIDConnectAdapter
  10. SOCIAL_ADAPTER_MAP = {
  11. "digitalocean": DigitalOceanOAuth2Adapter,
  12. "github": GitHubOAuth2Adapter,
  13. "gitlab": GitLabOAuth2Adapter,
  14. "google": GoogleOAuth2Adapter,
  15. "microsoft": MicrosoftGraphOAuth2Adapter,
  16. "gitea": GiteaOAuth2Adapter,
  17. "nextcloud": NextCloudAdapter,
  18. "keycloak": KeycloakOAuth2Adapter,
  19. "openid_connect": OpenIDConnectAdapter,
  20. }