mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-20 03:19:24 +02:00
Fix linting errors
This commit is contained in:
parent
0edd42dac7
commit
b8fc81a7e4
4 changed files with 3 additions and 5 deletions
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue