mirror of
https://github.com/bitwarden/server.git
synced 2025-01-22 21:51:22 +01:00
Handle nameID as email w/o email attribute (#938)
This commit is contained in:
parent
1c6c599b8d
commit
143e34766d
@ -351,6 +351,10 @@ namespace Bit.Sso.Controllers
|
||||
{
|
||||
var name = GetName(claims);
|
||||
var email = GetEmailAddress(claims);
|
||||
if (string.IsNullOrWhiteSpace(email) && providerUserId.Contains("@"))
|
||||
{
|
||||
email = providerUserId;
|
||||
}
|
||||
|
||||
Guid? orgId = null;
|
||||
if (Guid.TryParse(provider, out var oId))
|
||||
|
Loading…
Reference in New Issue
Block a user