Skip to content

Commit bac50e1

Browse files
authored
Merge pull request #10 from jheier/master
Update usings usage
2 parents bef3b6f + 3f384c8 commit bac50e1

5 files changed

Lines changed: 26 additions & 32 deletions

File tree

RutaHttpModule/AdInteraction.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
4-
using System.DirectoryServices.AccountManagement;
5-
using System.Linq;
6-
7-
namespace RutaHttpModule
1+
namespace RutaHttpModule
82
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Diagnostics.CodeAnalysis;
6+
using System.DirectoryServices.AccountManagement;
7+
using System.Linq;
8+
99
internal class AdInteraction : IAdInteraction
1010
{
1111
private readonly ISettings settings;

RutaHttpModule/IAdInteraction.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using System.Collections.Generic;
2-
3-
namespace RutaHttpModule
1+
namespace RutaHttpModule
42
{
3+
using System.Collections.Generic;
4+
55
internal interface IAdInteraction
66
{
77
(string login, string name, string email, IEnumerable<string> groups) GetUserInformation(string domainUsername);

RutaHttpModule/LdapExtensions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.DirectoryServices;
4-
using System.DirectoryServices.AccountManagement;
5-
using System.DirectoryServices.ActiveDirectory;
6-
7-
namespace RutaHttpModule
1+
namespace RutaHttpModule
82
{
3+
using System;
4+
using System.Collections.Generic;
5+
using System.DirectoryServices;
6+
using System.DirectoryServices.AccountManagement;
7+
using System.DirectoryServices.ActiveDirectory;
8+
99
/// This monstrosity exists because <see cref="UserPrincipal.GetAuthorizationGroups"/> is so slow. (20+ seconds)
1010
internal static class LdapExtensions
1111
{

RutaHttpModule/SonarAuthPassthroughHttpContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
using System;
44
using System.Diagnostics.CodeAnalysis;
5-
using System.Linq;
65
using System.Security.Principal;
76
using System.Web;
87

RutaHttpModule/SonarAuthPassthroughModule.cs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
4-
using System.Diagnostics.CodeAnalysis;
5-
using System.Linq;
6-
using System.Security.Principal;
7-
using System.Text;
8-
using System.Threading.Tasks;
9-
using System.Web;
10-
11-
namespace RutaHttpModule
1+
namespace RutaHttpModule
122
{
3+
using System;
4+
using System.Diagnostics;
5+
using System.Diagnostics.CodeAnalysis;
6+
using System.Linq;
7+
using System.Security.Principal;
8+
using System.Web;
9+
1310
/// <summary>
1411
/// The goal of this class is to determine which traffic is from a sonar scanner\lint and allow it to pass through since it's likely
1512
/// using token based auth and\or accesssing an unrestricted endpoint.
@@ -148,6 +145,4 @@ public bool IsInRole(string role)
148145
}
149146
}
150147
}
151-
152-
153-
}
148+
}

0 commit comments

Comments
 (0)