Skip to content

Commit

Permalink
feat(fido2): allow to update device data in SG authentication respons…
Browse files Browse the repository at this point in the history
…e jans #8116

Signed-off-by: Yuriy Movchan <[email protected]>
  • Loading branch information
yurem committed Mar 27, 2024
1 parent 1067c55 commit 0689795
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ public String convertEntityToString(byte[] responseBytes, String charsetName) th

public boolean isResponseStastusCodeOk(HttpResponse httpResponse) {
int responseStastusCode = httpResponse.getStatusLine().getStatusCode();
if (responseStastusCode == HttpStatus.SC_OK) {
if ((responseStastusCode == HttpStatus.SC_OK) || (responseStastusCode == HttpStatus.SC_CREATED) || (responseStastusCode == HttpStatus.SC_ACCEPTED)
|| (responseStastusCode == HttpStatus.SC_NON_AUTHORITATIVE_INFORMATION) || (responseStastusCode == HttpStatus.SC_NO_CONTENT) || (responseStastusCode == HttpStatus.SC_RESET_CONTENT)
|| (responseStastusCode == HttpStatus.SC_PARTIAL_CONTENT) || (responseStastusCode == HttpStatus.SC_MULTI_STATUS)) {
return true;
}

Expand Down

0 comments on commit 0689795

Please sign in to comment.