mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05: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 name = GetName(claims);
|
||||||
var email = GetEmailAddress(claims);
|
var email = GetEmailAddress(claims);
|
||||||
|
if (string.IsNullOrWhiteSpace(email) && providerUserId.Contains("@"))
|
||||||
|
{
|
||||||
|
email = providerUserId;
|
||||||
|
}
|
||||||
|
|
||||||
Guid? orgId = null;
|
Guid? orgId = null;
|
||||||
if (Guid.TryParse(provider, out var oId))
|
if (Guid.TryParse(provider, out var oId))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user