Skip to content

Commit a90c38c

Browse files
committed
Core Project Cleanup
1 parent 9af18f7 commit a90c38c

File tree

172 files changed

+2973
-3578
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+2973
-3578
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
4-
{
5-
public interface IAccessAuthority
6-
{
7-
AccessDecision Decide(AccessContext context, IEnumerable<IAccessPolicy> runtimePolicies);
8-
}
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
94

5+
public interface IAccessAuthority
6+
{
7+
AccessDecision Decide(AccessContext context, IEnumerable<IAccessPolicy> runtimePolicies);
108
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IAccessInvariant
46
{
5-
public interface IAccessInvariant
6-
{
7-
AccessDecision Decide(AccessContext context);
8-
}
7+
AccessDecision Decide(AccessContext context);
98
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IAccessPolicy
46
{
5-
public interface IAccessPolicy
6-
{
7-
bool AppliesTo(AccessContext context);
8-
AccessDecision Decide(AccessContext context);
9-
}
7+
bool AppliesTo(AccessContext context);
8+
AccessDecision Decide(AccessContext context);
109
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IAuthAuthority
46
{
5-
public interface IAuthAuthority
6-
{
7-
AccessDecisionResult Decide(AuthContext context, IEnumerable<IAuthorityPolicy>? policies = null);
8-
}
7+
AccessDecisionResult Decide(AuthContext context, IEnumerable<IAuthorityPolicy>? policies = null);
98
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IAuthorityInvariant
46
{
5-
public interface IAuthorityInvariant
6-
{
7-
AccessDecisionResult Decide(AuthContext context);
8-
}
7+
AccessDecisionResult Decide(AuthContext context);
98
}
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
using CodeBeam.UltimateAuth.Core.Contracts;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IAuthorityPolicy
46
{
5-
public interface IAuthorityPolicy
6-
{
7-
bool AppliesTo(AuthContext context);
8-
AccessDecisionResult Decide(AuthContext context);
9-
}
7+
bool AppliesTo(AuthContext context);
8+
AccessDecisionResult Decide(AuthContext context);
109
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
namespace CodeBeam.UltimateAuth.Core.Abstractions
1+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
2+
3+
public interface IHubCapabilities
24
{
3-
public interface IHubCapabilities
4-
{
5-
bool SupportsPkce { get; }
6-
}
5+
bool SupportsPkce { get; }
76
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Domain;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IHubCredentialResolver
46
{
5-
public interface IHubCredentialResolver
6-
{
7-
Task<HubCredentials?> ResolveAsync(HubSessionId hubSessionId, CancellationToken ct = default);
8-
}
7+
Task<HubCredentials?> ResolveAsync(HubSessionId hubSessionId, CancellationToken ct = default);
98
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using CodeBeam.UltimateAuth.Core.Domain;
22

3-
namespace CodeBeam.UltimateAuth.Core.Abstractions
3+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
4+
5+
public interface IHubFlowReader
46
{
5-
public interface IHubFlowReader
6-
{
7-
Task<HubFlowState?> GetStateAsync(HubSessionId hubSessionId, CancellationToken ct = default);
8-
}
7+
Task<HubFlowState?> GetStateAsync(HubSessionId hubSessionId, CancellationToken ct = default);
98
}
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
namespace CodeBeam.UltimateAuth.Core.Abstractions
1+
namespace CodeBeam.UltimateAuth.Core.Abstractions;
2+
3+
/// <summary>
4+
/// Provides an abstracted time source for the system.
5+
/// Used to improve testability and ensure consistent time handling.
6+
/// </summary>
7+
public interface IClock
28
{
3-
/// <summary>
4-
/// Provides an abstracted time source for the system.
5-
/// Used to improve testability and ensure consistent time handling.
6-
/// </summary>
7-
public interface IClock
8-
{
9-
DateTimeOffset UtcNow { get; }
10-
}
9+
DateTimeOffset UtcNow { get; }
1110
}

0 commit comments

Comments
 (0)