1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-20 18:23:51 +00:00

[PM-3513] Show API error when SSO policy is enforced.

This commit is contained in:
André Bispo
2023-08-18 20:55:36 +01:00
parent 70a177b4b7
commit cbc4efcb99

View File

@@ -12,6 +12,7 @@ using Bit.App.Utilities;
using Bit.Core; using Bit.Core;
using Bit.Core.Abstractions; using Bit.Core.Abstractions;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Exceptions;
using Bit.Core.Models.Domain; using Bit.Core.Models.Domain;
using Bit.Core.Models.Response; using Bit.Core.Models.Response;
using Bit.Core.Services; using Bit.Core.Services;
@@ -277,6 +278,10 @@ namespace Bit.App.Pages
await HandleLoginCompleteAsync(); await HandleLoginCompleteAsync();
} }
} }
catch (ApiException ex) when (ex?.Error?.StatusCode == System.Net.HttpStatusCode.BadRequest)
{
HandleException(ex, ex?.Error?.Message);
}
catch (Exception ex) catch (Exception ex)
{ {
StartCheckLoginRequestStatus(); StartCheckLoginRequestStatus();