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"