diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-16 14:30:46 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-01-16 14:30:46 +0200 |
| commit | e87626ffc0298426d8242c2453a6992d94f38e1f (patch) | |
| tree | ece78d9d788b2b5f9d19d1a007ae87198c8bfcb4 /Software/Visual_Studio/Tango.Web/ActiveDirectory | |
| parent | 1ee11bc9771c807c4d0ecb4d73e4bc33b307ae1e (diff) | |
| download | Tango-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.cs | 1 |
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; |
