Skip to content

Commit 9ed3fc7

Browse files
author
Shivam Tiwari
committed
Remove State FF
1 parent 775ff6f commit 9ed3fc7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

apps/dot_ext/views/authorization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_grant_expiration(data_access_type):
5959
def require_post_state_decorator(view_func):
6060
@wraps(view_func)
6161
def _wrapped(request, *args, **kwargs):
62-
if request.method == "POST" and not request.POST.get("state") and switch_is_active("require_state"):
62+
if request.method == "POST" and not request.POST.get("state"):
6363
return JsonResponse(
6464
{"status_code": 401, "message": "State required for POST requests."},
6565
status=401,

apps/mymedicare_cb/tests/test_callback_slsx.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from requests.exceptions import HTTPError
1919
from rest_framework import status
2020
from urllib.parse import urlparse, parse_qs
21-
from waffle.testutils import override_switch
2221

2322
from apps.accounts.models import UserProfile
2423
from apps.capabilities.models import ProtectedCapability
@@ -136,7 +135,6 @@ def test_authorize_uuid_dne(self):
136135
response = self.client.get(auth_uri)
137136
self.assertEqual(status.HTTP_302_FOUND, response.status_code)
138137

139-
@override_switch('require_state', active=True)
140138
def test_authorize_uuid(self):
141139
user = User.objects.create_user("bob", password="bad")
142140
Crosswalk.objects.create(

0 commit comments

Comments
 (0)