From b8fc81a7e492443c2f689e7c5f70d17278ca150a Mon Sep 17 00:00:00 2001 From: Neil Martinsen-Burrell Date: Mon, 26 Sep 2022 14:46:41 -0500 Subject: [PATCH] Fix linting errors --- src/registrar/config/settings.py | 4 +--- src/registrar/context_processors.py | 1 + src/registrar/views/index.py | 1 - src/registrar/views/whoami.py | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/registrar/config/settings.py b/src/registrar/config/settings.py index 60b0a17a8..19285509a 100644 --- a/src/registrar/config/settings.py +++ b/src/registrar/config/settings.py @@ -404,9 +404,7 @@ OIDC_PROVIDERS = { "client_registration": { "client_id": "cisa_dotgov_registrar", "redirect_uris": [f"{env_base_url}/openid/callback/login/"], - "post_logout_redirect_uris": [ - f"{env_base_url}/openid/callback/logout/" - ], + "post_logout_redirect_uris": [f"{env_base_url}/openid/callback/logout/"], "token_endpoint_auth_method": ["private_key_jwt"], "sp_private_key": secret_login_key, }, diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index 51a420fca..38f058b93 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -12,6 +12,7 @@ def language_code(request): """ return {"LANGUAGE_CODE": settings.LANGUAGE_CODE} + def canonical_path(request): """Add a canonical URL to the template context. diff --git a/src/registrar/views/index.py b/src/registrar/views/index.py index 8017062dd..e4acc7818 100644 --- a/src/registrar/views/index.py +++ b/src/registrar/views/index.py @@ -1,5 +1,4 @@ from django.shortcuts import render -from django.contrib.auth.decorators import login_required def index(request): diff --git a/src/registrar/views/whoami.py b/src/registrar/views/whoami.py index 53ad0aa00..20bde778b 100644 --- a/src/registrar/views/whoami.py +++ b/src/registrar/views/whoami.py @@ -1,8 +1,8 @@ from django.shortcuts import render from django.contrib.auth.decorators import login_required + @login_required def whoami(request): """This is the first page someone goes to after logging in.""" return render(request, "whoami.html") -