first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class AuthTokenResponse
|
||||
{
|
||||
public AuthTokenStatus Status { get; set; }
|
||||
public AuthToken Token { get; set; }
|
||||
}
|
||||
|
||||
public class AuthTokenStatus
|
||||
{
|
||||
public string StatusMessage { get; set; }
|
||||
public AuthTokenError ErrorInfo { get; set; }
|
||||
}
|
||||
|
||||
public class AuthTokenError
|
||||
{
|
||||
public string ErrorType { get; set; }
|
||||
public string ErrorCode { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
}
|
||||
|
||||
public class AuthToken
|
||||
{
|
||||
public string DiFiid { get; set; }
|
||||
public string DiFicustomer { get; set; }
|
||||
public string DiMemberNumber { get; set; }
|
||||
public string AccessToken { get; set; }
|
||||
public string ExpiresIn { get; set; }
|
||||
public string RefreshToken { get; set; }
|
||||
public string RefreshTokenExpiresIn { get; set; }
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class AuthenticationStatement
|
||||
{
|
||||
public string SessionIndex { get; set; }
|
||||
public string AuthContextClassRef { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class Constants
|
||||
{
|
||||
public static readonly string TokenPayload = "TokenPayload";
|
||||
public static readonly string TokenAuthorization = "TokenAuthorization";
|
||||
public static readonly string TokenAuthorizationString = "Member";
|
||||
public static readonly string TokenNonAuthorizationString = "None";
|
||||
public static readonly string MemberID = "MemberID";
|
||||
public static readonly string IndividualID = "IndividualID";
|
||||
public static readonly string FI_ID = "GroupID";
|
||||
public static readonly string IsTwoFactor = "IsTwoFactor";
|
||||
public static readonly string InProgressLoanId = "InProgressLoanId";
|
||||
public static readonly string TokenPrefix = "Bearer "; // space is intentional
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class DISAMLAssertion
|
||||
{
|
||||
public string NameID { get; set; }
|
||||
public string Recipient { get; set; }
|
||||
public SAMLConditions Conditions { get; set; }
|
||||
public AuthenticationStatement AuthnStatement { get; set; }
|
||||
public string MemberID { get; set; }
|
||||
public string FI_ID { get; set; }
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class OnlineBankingFormData
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string DI_TID { get; set; }
|
||||
public string DI_FIID { get; set; }
|
||||
public string GrantType = "password";
|
||||
public string Authorization { get; set; }
|
||||
}
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class OnlineBankingToken
|
||||
{
|
||||
public string MemberID { get; set; }
|
||||
public string IndividualID { get; set; }
|
||||
public string FI_ID { get; set; }
|
||||
public string LoanId { get; set; }
|
||||
public bool IsTwoFactor { get; set; }
|
||||
|
||||
public OnlineBankingToken(DISAMLAssertion assertion, string loanId, bool isTwoFactor)
|
||||
{
|
||||
this.MemberID = assertion?.MemberID;
|
||||
this.FI_ID = assertion.FI_ID;
|
||||
this.LoanId = loanId;
|
||||
this.IsTwoFactor = isTwoFactor;
|
||||
}
|
||||
|
||||
public OnlineBankingToken() { }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
|
||||
namespace Landmark.OLA.Models.OnlineBanking
|
||||
{
|
||||
public class SAMLConditions
|
||||
{
|
||||
public DateTime NotBefore { get; set; }
|
||||
public DateTime NotAfter { get; set; }
|
||||
public string Audience { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user