You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
451 B
Python

# Copyright (C) 2023 CVAT.ai Corporation
#
# SPDX-License-Identifier: MIT
from allauth.socialaccount.providers.amazon_cognito.views import AmazonCognitoOAuth2Adapter
from django.conf import settings
class TestAmazonCognitoOAuth2Adapter(AmazonCognitoOAuth2Adapter):
@property
def profile_url(self):
return super().profile_url.lower()
def get_callback_url(self, request, app):
return settings.AMAZON_COGNITO_REDIRECT_URI