aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-24 13:38:47 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-24 13:38:47 +0200
commit64b768178dc9e64293a52c1b6d2631709af9502a (patch)
tree6b7782fdbbbab4f734a1cb499cca03728c4f8f69 /Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
parent028ab0e5cc2699ceec3e04b1eeab5f56b9b38083 (diff)
downloadTango-64b768178dc9e64293a52c1b6d2631709af9502a.tar.gz
Tango-64b768178dc9e64293a52c1b6d2631709af9502a.zip
Removed all refresh tokens use :/
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs b/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
index 3948ae1c4..896788ffc 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Security/RefreshTokenEncoder.cs
@@ -11,16 +11,16 @@ namespace Tango.MachineService.Security
{
public String Encode(T obj)
{
- String str = obj.ToJsonString();
+ String json = JsonConvert.SerializeObject(obj);
Rfc2898Cryptographer crypt = new Rfc2898Cryptographer();
- return crypt.Encrypt(str);
+ return crypt.Encrypt(json);
}
public T Decode(String token)
{
Rfc2898Cryptographer crypt = new Rfc2898Cryptographer();
- String str = crypt.Decrypt(token);
- return JsonConvert.DeserializeObject<T>(str);
+ String json = crypt.Decrypt(token);
+ return JsonConvert.DeserializeObject<T>(json);
}
}
} \ No newline at end of file