Added flush AuthToken cache API.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user