Flake8 flakiness
This commit is contained in:
parent
8d9eb7e54e
commit
82be330983
|
@ -38,7 +38,7 @@ class AuthenticationService:
|
||||||
# KEYCLOAK_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\n" + keycloak_openid.public_key() + "\n-----END PUBLIC KEY-----"
|
# 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',
|
# policies = keycloak_openid.get_policies(token['access_token'], method_token_info='decode',
|
||||||
# key=KEYCLOAK_PUBLIC_KEY)
|
# 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"
|
token["access_token"], method_token_info="introspect"
|
||||||
)
|
)
|
||||||
# TODO: Not sure if this is good. Permissions comes back as None
|
# TODO: Not sure if this is good. Permissions comes back as None
|
||||||
|
|
|
@ -8,10 +8,10 @@ from spiffworkflow_backend.services.authentication_service import Authentication
|
||||||
server_url = "http://localhost:8080/"
|
server_url = "http://localhost:8080/"
|
||||||
client_id = "bank-api"
|
client_id = "bank-api"
|
||||||
realm_name = "stackoverflow-demo"
|
realm_name = "stackoverflow-demo"
|
||||||
client_secret_key = "seciKpRanUReL0ksZaFm5nfjhMUKHVAO"
|
client_secret_key = "seciKpRanUReL0ksZaFm5nfjhMUKHVAO" # noqa: S105
|
||||||
|
|
||||||
user = "bob"
|
user = "bob"
|
||||||
password = "LetMeIn"
|
password = "LetMeIn" # noqa: S105
|
||||||
|
|
||||||
resource = "View Account Resource"
|
resource = "View Account Resource"
|
||||||
scope = "account:view"
|
scope = "account:view"
|
||||||
|
|
Loading…
Reference in New Issue