mirror of
https://github.com/bitwarden/server
synced 2026-01-06 02:23:51 +00:00
Filled custom error handling gaps for SSO (#922)
* Filled custom error handling gaps for SSO * Removed explicit logger from HomeController
This commit is contained in:
@@ -5,11 +5,24 @@ namespace Bit.Sso.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
private string _requestId;
|
||||
|
||||
public ErrorMessage Error { get; set; }
|
||||
public Exception Exception { get; set; }
|
||||
|
||||
public string Message => Error?.Error;
|
||||
public string Description => Error?.ErrorDescription;
|
||||
public string RequestId => Error?.RequestId;
|
||||
public string Description => Error?.ErrorDescription ?? Exception?.Message;
|
||||
public string RedirectUri => Error?.RedirectUri;
|
||||
public string RequestId
|
||||
{
|
||||
get
|
||||
{
|
||||
return Error?.RequestId ?? _requestId;
|
||||
}
|
||||
set
|
||||
{
|
||||
_requestId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user