|
@@ -38,7 +38,10 @@ namespace iiie.Authentication.Business.JWT
|
38
|
38
|
/// <param name="username">The username of the verified token</param>
|
39
|
39
|
/// <param name="salt">The salt in the token</param>
|
40
|
40
|
/// <returns>The user dbo, or null if user is not valid</returns>
|
41
|
|
- protected abstract UserDboAuth GetUserDbo(string username, string salt);
|
|
41
|
+ protected UserDboAuth GetUserDbo(string username, string salt)
|
|
42
|
+ {
|
|
43
|
+ return null;
|
|
44
|
+ }
|
42
|
45
|
|
43
|
46
|
/// <summary>
|
44
|
47
|
/// Attempts to verify user token
|
|
@@ -66,7 +69,7 @@ namespace iiie.Authentication.Business.JWT
|
66
|
69
|
}
|
67
|
70
|
};
|
68
|
71
|
|
69
|
|
- var stringValidator = AuthProvider.Instance.GetValidatorString();
|
|
72
|
+ var stringValidator = "";//AuthProvider.Instance.GetValidatorString();
|
70
|
73
|
TokenValidationParameters validationParameters = new TokenValidationParameters()
|
71
|
74
|
{
|
72
|
75
|
RequireSignedTokens = true,
|
|
@@ -74,7 +77,7 @@ namespace iiie.Authentication.Business.JWT
|
74
|
77
|
ValidAudience = stringValidator,
|
75
|
78
|
ValidateIssuerSigningKey = true,
|
76
|
79
|
ValidIssuer = "urn:" + stringValidator,
|
77
|
|
- IssuerSigningToken = new BinarySecretSecurityToken(Convert.FromBase64String(AuthProvider.Instance.GetCredentialKey()))
|
|
80
|
+ IssuerSigningToken = new BinarySecretSecurityToken(Convert.FromBase64String(/*AuthProvider.Instance.GetCredentialKey()*/""))
|
78
|
81
|
};
|
79
|
82
|
|
80
|
83
|
SecurityToken validateToken;
|