File tree 1 file changed +5
-4
lines changed
readthedocsext/theme/templates/socialaccount/snippets
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- {% load socialaccount %}
2
- {% load i18n %}
1
+ {% load get_providers provider_login_url from socialaccount %}
2
+ {% load trans blocktrans from i18n %}
3
3
4
4
{% get_providers as socialaccount_providers %}
5
5
11
11
{% if provider.id != 'saml' %}
12
12
{% if allowed_providers and provider.id in allowed_providers or not allowed_providers %}
13
13
< li class ="item ">
14
+ {# Bitbucket doesn't allow more than one callback URL for their OAuth app, so we are redirecting users to the old dashboard for now. #}
14
15
< form class ="ui form "
15
- method ="post "
16
- action ="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %} ">
16
+ method ="{% if provider.id == " bitbucket_oauth2 " %}get{% else %} post{% endif %} "
17
+ action="{% if provider.id == " bitbucket_oauth2 " %}https://{{ PUBLIC_DOMAIN|cut:"app." }}{% endif %}{% provider_login_url provider.id process=process scope =scope auth_params =auth_params %} ">
17
18
{% csrf_token %}
18
19
< button class ="ui button " type ="submit " title ="{{ provider.name }} ">
19
20
< i class ="fa-brands fa-{{ provider.name|lower }} icon "> </ i >
You can’t perform that action at this time.
0 commit comments