Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Nov 17, 2023
1 parent 41f44de commit f1420da
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions Yvand.EntraCP.Tests/CustomConfigTests.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using Microsoft.SharePoint.Administration.Claims;
using Newtonsoft.Json;
using NUnit.Framework;
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.Security.Claims;
using Yvand;
using Yvand.EntraClaimsProvider.Configuration;
using Newtonsoft.Json;

namespace Yvand.EntraClaimsProvider.Tests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static string ClaimsProviderVersion
#if DEBUG
public static int DEFAULT_TIMEOUT = 10 * 1000;
#else
public static int DEFAULT_TIMEOUT = 4 * 1000; // 40 secs
public static int DEFAULT_TIMEOUT = 15 * 1000;
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public string ClientId
public string ClientSecret
{
get => _ClientSecret;
protected set => _ClientSecret = value;
set => _ClientSecret = value;
}
[Persisted]
private string _ClientSecret;
Expand Down Expand Up @@ -210,12 +210,12 @@ public void InitializeAuthentication(int timeout, string proxyAddress)
var handlers = GraphClientFactory.CreateDefaultHandlers(new GraphClientOptions { GraphProductPrefix = "EntraCP" });
handlers.Add(new GraphRequestsLogging());
#if DEBUG
handlers.Add(new ChaosHandler(new ChaosHandlerOption()
{
ChaosPercentLevel = 50
}));
var retryHandler = handlers.Where(h => h is RetryHandler).FirstOrDefault();
handlers.Remove(retryHandler);
//handlers.Add(new ChaosHandler(new ChaosHandlerOption()
//{
// ChaosPercentLevel = 50
//}));
//var retryHandler = handlers.Where(h => h is RetryHandler).FirstOrDefault();
//handlers.Remove(retryHandler);
#endif

TokenCredentialOptions options = new TokenCredentialOptions
Expand Down

0 comments on commit f1420da

Please sign in to comment.