[CHANGE] Added dev page
This commit is contained in:
parent
92e5bb7f1f
commit
55322f8792
6 changed files with 67 additions and 2 deletions
|
|
@ -16,13 +16,16 @@ public static class AuthenticationUtilities
|
|||
return new AuthenticationHeaderValue(HeaderScheme, strHash);
|
||||
}
|
||||
|
||||
public static string? GetSapisidHash(string datasyncId, string sapisid, string origin)
|
||||
public static string? GetSapisidHash(string datasyncId, string sapisid, string origin, string? time = null)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(datasyncId) || string.IsNullOrWhiteSpace(sapisid) || string.IsNullOrWhiteSpace(origin))
|
||||
return null;
|
||||
datasyncId = datasyncId.Replace("||", "");
|
||||
sapisid = Uri.UnescapeDataString(sapisid);
|
||||
var time = GetTime();
|
||||
if (string.IsNullOrWhiteSpace(time))
|
||||
{
|
||||
time = GetTime();
|
||||
}
|
||||
var sha1 = HashString($"{datasyncId} {time} {sapisid} {origin}");
|
||||
var completeHash = $"{time}_{sha1}_u";
|
||||
return completeHash;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue