From 58091f2201c14aa570dfda8fcbc856b51ea148df Mon Sep 17 00:00:00 2001 From: Machiko Yasuda Date: Thu, 7 Sep 2023 21:02:08 +0000 Subject: [PATCH] feat(veterans): add Sign Out link for Veterans/Login.gov flow --- benefits/core/migrations/0002_data.py | 6 ++++-- ...gn-out--senior.html => button--sign-out--login-gov.html} | 0 ...sign-out--senior.html => link--sign-out--login-gov.html} | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename benefits/core/templates/core/includes/{button--sign-out--senior.html => button--sign-out--login-gov.html} (100%) rename benefits/core/templates/core/includes/{link--sign-out--senior.html => link--sign-out--login-gov.html} (100%) diff --git a/benefits/core/migrations/0002_data.py b/benefits/core/migrations/0002_data.py index af8a8b4e8..e95b5c781 100644 --- a/benefits/core/migrations/0002_data.py +++ b/benefits/core/migrations/0002_data.py @@ -144,8 +144,8 @@ def load_data(app, *args, **kwargs): AuthProvider = app.get_model("core", "AuthProvider") senior_auth_provider = AuthProvider.objects.create( - sign_out_button_template="core/includes/button--sign-out--senior.html", - sign_out_link_template="core/includes/link--sign-out--senior.html", + sign_out_button_template="core/includes/button--sign-out--login-gov.html", + sign_out_link_template="core/includes/link--sign-out--login-gov.html", client_name=os.environ.get("SENIOR_AUTH_PROVIDER_CLIENT_NAME", "senior-benefits-oauth-client-name"), client_id=os.environ.get("AUTH_PROVIDER_CLIENT_ID", "benefits-oauth-client-id"), authority=os.environ.get("AUTH_PROVIDER_AUTHORITY", "https://example.com"), @@ -155,6 +155,8 @@ def load_data(app, *args, **kwargs): ) veteran_auth_provider = AuthProvider.objects.create( + sign_out_button_template="core/includes/button--sign-out--login-gov.html", + sign_out_link_template="core/includes/link--sign-out--login-gov.html", client_name=os.environ.get("VETERAN_AUTH_PROVIDER_CLIENT_NAME", "veteran-benefits-oauth-client-name"), client_id=os.environ.get("AUTH_PROVIDER_CLIENT_ID", "benefits-oauth-client-id"), authority=os.environ.get("AUTH_PROVIDER_AUTHORITY", "https://example.com"), diff --git a/benefits/core/templates/core/includes/button--sign-out--senior.html b/benefits/core/templates/core/includes/button--sign-out--login-gov.html similarity index 100% rename from benefits/core/templates/core/includes/button--sign-out--senior.html rename to benefits/core/templates/core/includes/button--sign-out--login-gov.html diff --git a/benefits/core/templates/core/includes/link--sign-out--senior.html b/benefits/core/templates/core/includes/link--sign-out--login-gov.html similarity index 100% rename from benefits/core/templates/core/includes/link--sign-out--senior.html rename to benefits/core/templates/core/includes/link--sign-out--login-gov.html