@@ -261,6 +261,7 @@ func (s *Service) HandleAssertion(
|
|||||||
*identity = coredata.Identity{
|
*identity = coredata.Identity{
|
||||||
ID: gid.New(gid.NilTenant, coredata.IdentityEntityType),
|
ID: gid.New(gid.NilTenant, coredata.IdentityEntityType),
|
||||||
EmailAddress: email,
|
EmailAddress: email,
|
||||||
|
SAMLSubject: &assertion.Subject.NameID.Value,
|
||||||
FullName: fullname,
|
FullName: fullname,
|
||||||
HashedPassword: nil,
|
HashedPassword: nil,
|
||||||
EmailAddressVerified: true,
|
EmailAddressVerified: true,
|
||||||
@@ -275,7 +276,6 @@ func (s *Service) HandleAssertion(
|
|||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
return fmt.Errorf("cannot load identity: %w", err)
|
return fmt.Errorf("cannot load identity: %w", err)
|
||||||
} else {
|
} else {
|
||||||
identity.SAMLSubject = &assertion.Subject.NameID.Value
|
|
||||||
identity.EmailAddress = email
|
identity.EmailAddress = email
|
||||||
identity.FullName = fullname
|
identity.FullName = fullname
|
||||||
identity.EmailAddressVerified = true
|
identity.EmailAddressVerified = true
|
||||||
|
|||||||
Reference in New Issue
Block a user