Browse Source

Merge pull request #303 from asyd/issue/288

Add 202 expected return code when update flow #288
pull/312/head
Richard Nemeth 3 years ago
committed by GitHub
parent
commit
f183750a27
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      keycloak/keycloak_admin.py

2
keycloak/keycloak_admin.py

@ -1707,7 +1707,7 @@ class KeycloakAdmin:
params_path = {"realm-name": self.realm_name, "flow-alias": flow_alias} params_path = {"realm-name": self.realm_name, "flow-alias": flow_alias}
data_raw = self.raw_put(URL_ADMIN_FLOWS_EXECUTIONS.format(**params_path), data_raw = self.raw_put(URL_ADMIN_FLOWS_EXECUTIONS.format(**params_path),
data=json.dumps(payload)) data=json.dumps(payload))
return raise_error_from_response(data_raw, KeycloakGetError, expected_codes=[204])
return raise_error_from_response(data_raw, KeycloakGetError, expected_codes=[202,204])
def get_authentication_flow_execution(self, execution_id): def get_authentication_flow_execution(self, execution_id):
""" """

Loading…
Cancel
Save