aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Web/ActiveDirectory
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-01-16 14:30:46 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-01-16 14:30:46 +0200
commite87626ffc0298426d8242c2453a6992d94f38e1f (patch)
treeece78d9d788b2b5f9d19d1a007ae87198c8bfcb4 /Software/Visual_Studio/Tango.Web/ActiveDirectory
parent1ee11bc9771c807c4d0ecb4d73e4bc33b307ae1e (diff)
downloadTango-e87626ffc0298426d8242c2453a6992d94f38e1f.tar.gz
Tango-e87626ffc0298426d8242c2453a6992d94f38e1f.zip
Fixed issue with cached tokens when authenticating users in machine service with AD.
Improved Login View.
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/ActiveDirectory')
-rw-r--r--Software/Visual_Studio/Tango.Web/ActiveDirectory/ActiveDirectoryManager.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Web/ActiveDirectory/ActiveDirectoryManager.cs b/Software/Visual_Studio/Tango.Web/ActiveDirectory/ActiveDirectoryManager.cs
index d2eeb15a5..a59af83e0 100644
--- a/Software/Visual_Studio/Tango.Web/ActiveDirectory/ActiveDirectoryManager.cs
+++ b/Software/Visual_Studio/Tango.Web/ActiveDirectory/ActiveDirectoryManager.cs
@@ -16,6 +16,7 @@ namespace Tango.Web.ActiveDirectory
public AuthenticationResult ValidateUserCredentials(String email, String password)
{
var authContext = new AuthenticationContext(_service_root);
+ authContext.TokenCache.Clear();
UserCredential userCredential = new UserCredential(email, password);
AuthenticationResult authResult = authContext.AcquireToken("https://graph.windows.net/", WebConfig.CLIENT_ID, userCredential);
return authResult;