diff options
| author | Avi Levkovich <avi@twine-s.com> | 2019-02-25 09:20:02 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2019-02-25 09:20:02 +0200 |
| commit | 44a35db8a2929fb3f6aa56ed08185e066292f106 (patch) | |
| tree | ac744ffceb5f2a1d26852f66f52120781d0ac8d9 /Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs | |
| parent | a9713d76bb1602c38cf204bf7e7b2daeb714bda2 (diff) | |
| parent | cc7cafd24fdb59afc78d198062c469344177f553 (diff) | |
| download | Tango-44a35db8a2929fb3f6aa56ed08185e066292f106.tar.gz Tango-44a35db8a2929fb3f6aa56ed08185e066292f106.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs')
| -rw-r--r-- | Software/Visual_Studio/Web/Tango.MachineService/Controllers/MachineStudioController.cs | 21 |
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 } } |
