completed antiforgery implementation, improved external login claim mapping, principal construction, and user experience
This commit is contained in:
@ -1,13 +0,0 @@
|
||||
namespace Oqtane.Shared
|
||||
{
|
||||
public enum ExternalLoginStatus
|
||||
{
|
||||
Success,
|
||||
InvalidEmail,
|
||||
DuplicateEmail,
|
||||
UserNotCreated,
|
||||
UserDoesNotExist,
|
||||
ProviderKeyMismatch,
|
||||
VerificationRequired
|
||||
}
|
||||
}
|
@ -152,14 +152,5 @@ namespace Oqtane.Security
|
||||
}
|
||||
return identity;
|
||||
}
|
||||
|
||||
public static void ResetClaimsIdentity(ClaimsIdentity identity)
|
||||
{
|
||||
var claims = identity.Claims.ToList(); // clone
|
||||
foreach (var claim in claims)
|
||||
{
|
||||
identity.RemoveClaim(claim);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
13
Oqtane.Shared/Shared/ExternalLoginStatus.cs
Normal file
13
Oqtane.Shared/Shared/ExternalLoginStatus.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Oqtane.Shared {
|
||||
public class ExternalLoginStatus {
|
||||
public const string Success = "Success";
|
||||
public const string InvalidEmail = "InvalidEmail";
|
||||
public const string DuplicateEmail = "DuplicateEmail";
|
||||
public const string UserNotCreated = "UserNotCreated";
|
||||
public const string UserDoesNotExist = "UserDoesNotExist";
|
||||
public const string ProviderKeyMismatch = "ProviderKeyMismatch";
|
||||
public const string VerificationRequired = "VerificationRequired";
|
||||
public const string AccessDenied = "AccessDenied";
|
||||
public const string RemoteFailure = "RemoteFailure";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user