public static bool TryLogin(CallbackModel model, OidcModel oidcModel, out string errorReason)
 {
     if (!String.IsNullOrEmpty(model.Jwt))
     {
         return(TryLogin(model.Jwt, SuperOffice.SuperID.Contracts.SystemUser.V1.TokenType.Jwt.ToString(), oidcModel, out errorReason));
     }
     else if (!String.IsNullOrEmpty(model.Saml))
     {
         return(TryLogin(model.Saml, SuperOffice.SuperID.Contracts.SystemUser.V1.TokenType.Saml.ToString(), oidcModel, out errorReason));
     }
     else
     {
         errorReason = "SAML and JWT empty.";
         return(false);
     }
 }
 public static bool TryLogin(CallbackModel model, out string errorReason)
 {
     return(TryLogin(model, null, out errorReason));
 }