Added flush AuthToken cache API.

This commit is contained in:
Juan Carlos Luciani
2007-04-13 19:21:40 +00:00
parent 2342ee4dd0
commit 099e4cabfc
12 changed files with 497 additions and 198 deletions

View File

@@ -49,8 +49,8 @@ namespace TestClientAuth
try
{
WinLuid luid = new WinLuid(1234, 5678);
Authtoken.ObtainAuthToken("testService", args[0], luid);
//WinLuid luid = new WinLuid(1234, 5678);
Authtoken.ObtainAuthToken("testService", args[0]);
byte[] baToken = Authtoken.ObtainAuthToken("testService", args[0]);
Console.WriteLine("Token returned: ("+ baToken.Length + ")");
@@ -61,6 +61,11 @@ namespace TestClientAuth
Console.WriteLine("");
Console.WriteLine("Press enter to continue");
Console.ReadLine();
// Cleanup the AuthTokenCache
Console.WriteLine("Cleaning the cache");
Authtoken.CleanUpAuthTokenCache();
Console.WriteLine("Done cleaning the cache");
}
catch (Exception e)
{