Skip to content

Commit 14399cf

Browse files
authored
Merge pull request #61 from stefankip/master
Update PrincipalHelper and OAuthConstants to public
2 parents ffdf6a3 + e3761fc commit 14399cf

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Our.Umbraco.AuthU/OAuthConstants.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
{
33
public partial class OAuth
44
{
5-
internal static readonly string DefaultRealm = "default";
5+
public static readonly string DefaultRealm = "default";
66

7-
internal static readonly string DefaultClientId = "default";
7+
public static readonly string DefaultClientId = "default";
88

9-
internal static readonly string DefaultEndpointPath = "/oauth/token";
9+
public static readonly string DefaultEndpointPath = "/oauth/token";
1010

11-
internal static class ClaimTypes
11+
public static class ClaimTypes
1212
{
13-
internal static readonly string Realm = "realm";
14-
internal static readonly string DeviceId = "deviceid";
15-
}
13+
public static readonly string Realm = "realm";
14+
public static readonly string DeviceId = "deviceid";
15+
}
1616
}
1717
}

src/Our.Umbraco.AuthU/Web/Helpers/PrincipalHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Our.Umbraco.AuthU.Interfaces;
2-
using System.Linq;
1+
using System.Linq;
32
using System.Security.Claims;
3+
using Our.Umbraco.AuthU.Interfaces;
44

55
namespace Our.Umbraco.AuthU.Web.Helpers
66
{
7-
internal static class PrincipalHelper
7+
public static class PrincipalHelper
88
{
99
public static bool ValidatePrincipal(ClaimsPrincipal principal, string targetRealm, IOAuthUserService userService)
1010
{

0 commit comments

Comments
 (0)