Skip to content

Commit

Permalink
Redirects all auth to v2 path.
Browse files Browse the repository at this point in the history
Auth paths are the same, so v1 or v2 go to v2 callback moving forward. Prevents forking, v1->v2 is less confusing than v2->v1.
  • Loading branch information
loganbertram committed Feb 25, 2025
1 parent 3d6a4bb commit 141930d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/dot_ext/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


base_urlpatterns = [
path("authorize/", views.AuthorizationView.as_view(), name="authorize"),
path("authorize/", views.AuthorizationView.as_view(version=2), name="authorize"),
re_path(
r"^authorize/(?P<uuid>[\w-]+)/$",
views.ApprovalView.as_view(),
Expand Down
2 changes: 1 addition & 1 deletion apps/mymedicare_cb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def authenticate(request):


@never_cache
def callback(request, version=1):
def callback(request, version=2):
try:
authenticate(request)
except ValidationError as e:
Expand Down
6 changes: 3 additions & 3 deletions docker-compose/run_selenium_tests_remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ export USE_NEW_PERM_SCREEN
export USE_MSLSX=false

# stop all before run selenium remote tests
docker-compose -f docker-compose.selenium.remote.yml down --remove-orphans
docker-compose -f docker-compose.selenium.remote.yml run selenium-remote-tests bash -c "SELENIUM_GRID=${SELENIUM_GRID} pytest ${PYTEST_SHOW_TRACE_OPT} ${TESTS_LIST}"
docker compose -f docker-compose.selenium.remote.yml down --remove-orphans
docker compose -f docker-compose.selenium.remote.yml run selenium-remote-tests bash -c "SELENIUM_GRID=${SELENIUM_GRID} pytest ${PYTEST_SHOW_TRACE_OPT} ${TESTS_LIST}"

# Stop containers after use
echo_msg
echo_msg "Stopping containers..."
echo_msg

docker-compose -f docker-compose.selenium.remote.yml stop
docker compose -f docker-compose.selenium.remote.yml stop

0 comments on commit 141930d

Please sign in to comment.