Fix linting errors

This commit is contained in:
Neil Martinsen-Burrell 2022-09-26 14:46:41 -05:00
parent 0edd42dac7
commit b8fc81a7e4
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
4 changed files with 3 additions and 5 deletions

View file

@ -404,9 +404,7 @@ OIDC_PROVIDERS = {
"client_registration": { "client_registration": {
"client_id": "cisa_dotgov_registrar", "client_id": "cisa_dotgov_registrar",
"redirect_uris": [f"{env_base_url}/openid/callback/login/"], "redirect_uris": [f"{env_base_url}/openid/callback/login/"],
"post_logout_redirect_uris": [ "post_logout_redirect_uris": [f"{env_base_url}/openid/callback/logout/"],
f"{env_base_url}/openid/callback/logout/"
],
"token_endpoint_auth_method": ["private_key_jwt"], "token_endpoint_auth_method": ["private_key_jwt"],
"sp_private_key": secret_login_key, "sp_private_key": secret_login_key,
}, },

View file

@ -12,6 +12,7 @@ def language_code(request):
""" """
return {"LANGUAGE_CODE": settings.LANGUAGE_CODE} return {"LANGUAGE_CODE": settings.LANGUAGE_CODE}
def canonical_path(request): def canonical_path(request):
"""Add a canonical URL to the template context. """Add a canonical URL to the template context.

View file

@ -1,5 +1,4 @@
from django.shortcuts import render from django.shortcuts import render
from django.contrib.auth.decorators import login_required
def index(request): def index(request):

View file

@ -1,8 +1,8 @@
from django.shortcuts import render from django.shortcuts import render
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
@login_required @login_required
def whoami(request): def whoami(request):
"""This is the first page someone goes to after logging in.""" """This is the first page someone goes to after logging in."""
return render(request, "whoami.html") return render(request, "whoami.html")