1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-08 22:55:19 +02:00

bugfix: use provider_id

This should be the provider_id and not the client_id
This commit is contained in:
Matt Chaffe 2025-02-08 19:10:34 +00:00 committed by GitHub
parent 5b42e8b372
commit 10cd755b84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ class EnabledSocialProvidersView(APIView):
providers = [] providers = []
for provider in social_providers: for provider in social_providers:
if provider.provider == 'openid_connect': if provider.provider == 'openid_connect':
new_provider = f'oidc/{provider.client_id}' new_provider = f'oidc/{provider.provider_id}'
else: else:
new_provider = provider.provider new_provider = provider.provider
providers.append({ providers.append({
@ -149,4 +149,4 @@ class EnabledSocialProvidersView(APIView):
'url': f"{getenv('PUBLIC_URL')}/accounts/{new_provider}/login/", 'url': f"{getenv('PUBLIC_URL')}/accounts/{new_provider}/login/",
'name': provider.name 'name': provider.name
}) })
return Response(providers, status=status.HTTP_200_OK) return Response(providers, status=status.HTTP_200_OK)