Skip to content

Commit

Permalink
load ADFS modules if required only
Browse files Browse the repository at this point in the history
  • Loading branch information
MaKyOtOx committed Apr 22, 2022
1 parent f239ccd commit a468901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend_app/backend_app/adfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework_simplejwt.tokens import RefreshToken
from django_auth_adfs.config import provider_config
from organizations.models import Organization, OrganizationUser, OrganizationOwner
import requests
# import base64

if hasattr(settings, 'AUTH_ADFS'):
from django_auth_adfs.config import provider_config


@api_view(['POST'])
@permission_classes([AllowAny])
Expand Down

0 comments on commit a468901

Please sign in to comment.