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:
parent
5b42e8b372
commit
10cd755b84
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue