From 82be330983c99ad8c309af1a172ac371f63c13c4 Mon Sep 17 00:00:00 2001 From: mike cullerton Date: Wed, 6 Jul 2022 08:37:32 -0400 Subject: [PATCH] Flake8 flakiness --- src/spiffworkflow_backend/services/authentication_service.py | 2 +- .../spiffworkflow_backend/integration/test_authentication.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spiffworkflow_backend/services/authentication_service.py b/src/spiffworkflow_backend/services/authentication_service.py index b37729bb..dcbd9648 100644 --- a/src/spiffworkflow_backend/services/authentication_service.py +++ b/src/spiffworkflow_backend/services/authentication_service.py @@ -38,7 +38,7 @@ class AuthenticationService: # KEYCLOAK_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\n" + keycloak_openid.public_key() + "\n-----END PUBLIC KEY-----" # policies = keycloak_openid.get_policies(token['access_token'], method_token_info='decode', # key=KEYCLOAK_PUBLIC_KEY) - permissions: list = keycloak_openid.get_permissions( + permissions: list = keycloak_openid.get_permissions( # noqa: S106 token["access_token"], method_token_info="introspect" ) # TODO: Not sure if this is good. Permissions comes back as None diff --git a/tests/spiffworkflow_backend/integration/test_authentication.py b/tests/spiffworkflow_backend/integration/test_authentication.py index 66559694..db015bff 100644 --- a/tests/spiffworkflow_backend/integration/test_authentication.py +++ b/tests/spiffworkflow_backend/integration/test_authentication.py @@ -8,10 +8,10 @@ from spiffworkflow_backend.services.authentication_service import Authentication server_url = "http://localhost:8080/" client_id = "bank-api" realm_name = "stackoverflow-demo" -client_secret_key = "seciKpRanUReL0ksZaFm5nfjhMUKHVAO" +client_secret_key = "seciKpRanUReL0ksZaFm5nfjhMUKHVAO" # noqa: S105 user = "bob" -password = "LetMeIn" +password = "LetMeIn" # noqa: S105 resource = "View Account Resource" scope = "account:view"