Flake8 flakiness

This commit is contained in:
mike cullerton 2022-07-06 08:37:32 -04:00
parent 8d9eb7e54e
commit 82be330983
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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"