Skip to content

Commit 9908942

Browse files
authored
Social accounts: link Bitbucket to new dashboard (#11892)
Closes readthedocs/readthedocs-ops#1580, requires readthedocs/ext-theme#555
1 parent 289f5b9 commit 9908942

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/templates/socialaccount/snippets/provider_list.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
{% if provider.id != 'saml' %}
1212
{% if allowed_providers and provider.id in allowed_providers or not allowed_providers %}
1313
<li>
14-
<form action="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params next=next %}" method="post">
14+
{# Bitbucket doesn't allow more than one callback URL for their OAuth app, so we are redirecting users to the new dashboard for now. #}
15+
<form method="{% if provider.id == "bitbucket_oauth2" %}get{% else %}post{% endif %}"
16+
action="{% if provider.id == "bitbucket_oauth2" %}https://app.{{ PRODUCTION_DOMAIN }}{% endif %}{% provider_login_url provider.id process=process scope=scope auth_params=auth_params next=next %}">
1517
{% csrf_token %}
1618
<button
1719
class="socialaccount-provider {{ provider.id }} button"

0 commit comments

Comments
 (0)