aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.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/Controllers/MachineStudioController.cs
parent028ab0e5cc2699ceec3e04b1eeab5f56b9b38083 (diff)
downloadTango-64b768178dc9e64293a52c1b6d2631709af9502a.tar.gz
Tango-64b768178dc9e64293a52c1b6d2631709af9502a.zip
Removed all refresh tokens use :/
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs')
-rw-r--r--Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs21
1 files changed, 0 insertions, 21 deletions
diff --git a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
index 324878f25..29cc067d6 100644
--- a/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
+++ b/Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs
@@ -366,27 +366,6 @@ namespace Tango.MachineService.Controllers
};
}
- [HttpPost]
- [JwtTokenFilter(allowExpired: true)]
- public RenewTokenResponse Renew(RenewTokenRequest request)
- {
- RefreshTokensManager manager = new RefreshTokensManager();
- var entity = manager.GetToken(request.RefreshToken);
-
- if (entity.AccessToken != RequestToken.AccessToken)
- {
- throw new AuthenticationException("Invalid access token and refresh token combination.");
- }
-
- var newToken = RequestToken.Renew(MachineServiceConfig.JWT_TOKEN_SECRET, entity.AccessToken);
-
- return new RenewTokenResponse()
- {
- AccessToken = entity.AccessToken,
- RefreshToken = entity.RefreshToken,
- };
- }
-
#endregion
}
}