mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
code review feedback
This commit is contained in:
@@ -12,9 +12,11 @@ from app.main import main
|
|||||||
|
|
||||||
|
|
||||||
def _sign_out_at_login_dot_gov():
|
def _sign_out_at_login_dot_gov():
|
||||||
base_url = "https://idp.int.identitysandbox.gov/openid_connect/logout?"
|
base_url = os.getenv("LOGIN_DOT_GOV_BASE_LOGOUT_URL")
|
||||||
client_id = f"client_id={os.getenv('LOGIN_DOT_GOV_CLIENT_ID')}"
|
client_id = f"client_id={os.getenv('LOGIN_DOT_GOV_CLIENT_ID')}"
|
||||||
post_logout_redirect_uri = "post_logout_redirect_uri=http://localhost:6012/sign-out"
|
post_logout_redirect_uri = (
|
||||||
|
f"post_logout_redirect_uri={os.getenv('LOGIN_DOT_GOV_SIGNOUT_REDIRECT')}"
|
||||||
|
)
|
||||||
|
|
||||||
url = f"{base_url}{client_id}&{post_logout_redirect_uri}"
|
url = f"{base_url}{client_id}&{post_logout_redirect_uri}"
|
||||||
current_app.logger.info(f"url={url}")
|
current_app.logger.info(f"url={url}")
|
||||||
|
|||||||
@@ -47,4 +47,6 @@ NR_BROWSER_KEY="don't write secrets to the sample file"
|
|||||||
LOGIN_DOT_GOV_CLIENT_ID="urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:test_notify_gov"
|
LOGIN_DOT_GOV_CLIENT_ID="urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:test_notify_gov"
|
||||||
LOGIN_DOT_GOV_USER_INFO_URL="https://idp.int.identitysandbox.gov/api/openid_connect/userinfo"
|
LOGIN_DOT_GOV_USER_INFO_URL="https://idp.int.identitysandbox.gov/api/openid_connect/userinfo"
|
||||||
LOGIN_DOT_GOV_ACCESS_TOKEN_URL="https://idp.int.identitysandbox.gov/api/openid_connect/token"
|
LOGIN_DOT_GOV_ACCESS_TOKEN_URL="https://idp.int.identitysandbox.gov/api/openid_connect/token"
|
||||||
LOGIN_DOT_GOV_LOGOUT_URL="https://idp.int.identitysandbox.gov/openid_connect/logout?client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:test_notify_gov&post_logout_redirect_uri=http://localhost:6012/sign-out"
|
LOGIN_DOT_GOV_LOGOUT_URL="https://idp.int.identitysandbox.gov/openid_connect/logout?client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:test_notify_gov&post_logout_redirect_uri=http://localhost:6012/sign-out"
|
||||||
|
LOGIN_DOT_GOV_BASE_LOGOUT_URL="https://idp.int.identitysandbox.gov/openid_connect/logout?"
|
||||||
|
LOGIN_DOT_GOV_SIGNOUT_REDIRECT="http://localhost:6012/sign-out"
|
||||||
Reference in New Issue
Block a user