Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PropelAuth/PropelAuth.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<!-- Package metadata -->
<PackageId>PropelAuth</PackageId>
<Version>0.0.1</Version>
<Version>0.0.4</Version>
<Authors>PropelAuth</Authors>
<Company>PropelAuth</Company>
<Description>Official .NET SDK for PropelAuth authentication and authorization</Description>
Expand Down
5 changes: 3 additions & 2 deletions PropelAuth/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
#region Properties

// Public properties
public string UserId { get; }

Check warning on line 14 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.UserId'
public string Email { get; }

Check warning on line 15 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.Email'
public string? FirstName { get; }

Check warning on line 16 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.FirstName'
public string? LastName { get; }

Check warning on line 17 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.LastName'
public string? Username { get; }

Check warning on line 18 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.Username'
public string? LegacyUserId { get; }

Check warning on line 19 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.LegacyUserId'
public LoginMethod LoginMethod { get; }

Check warning on line 20 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.LoginMethod'
public string? ImpersonatorUserId { get; }

Check warning on line 21 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.ImpersonatorUserId'
public Dictionary<string, object>? Properties { get; }

Check warning on line 22 in PropelAuth/User.cs

View workflow job for this annotation

GitHub Actions / Build and Test

Missing XML comment for publicly visible type or member 'User.Properties'

// Private properties
private Dictionary<string, OrgMemberInfo>? OrgIdToOrgMemberInfo { get; set; }
Expand Down Expand Up @@ -172,10 +172,11 @@

private string ExtractEmail(ClaimsPrincipal claimsPrincipal)
{
string? email = claimsPrincipal.FindFirstValue(ClaimTypes.Email);
string? email = claimsPrincipal.FindFirstValue("email") ?? claimsPrincipal.FindFirstValue(ClaimTypes.Email);

if (string.IsNullOrEmpty(email))
{
throw new ArgumentException($"Required claim '{ClaimTypes.Email}' is missing or empty",
throw new ArgumentException($"Required claim 'email' is missing or empty",
nameof(claimsPrincipal));
}

Expand Down
Loading