mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00
[PM-17143] Add sso external id to member response model (#5273)
(cherry picked from commit 42c8c3b6f6c40b773bd37f21649536bf03f990ff)
This commit is contained in:
parent
129c6b7bfc
commit
5461ae6956
@ -50,6 +50,7 @@ public class MemberResponseModel : MemberBaseModel, IResponseModel
|
|||||||
Status = user.Status;
|
Status = user.Status;
|
||||||
Collections = collections?.Select(c => new AssociationWithPermissionsResponseModel(c));
|
Collections = collections?.Select(c => new AssociationWithPermissionsResponseModel(c));
|
||||||
ResetPasswordEnrolled = user.ResetPasswordKey != null;
|
ResetPasswordEnrolled = user.ResetPasswordKey != null;
|
||||||
|
SsoExternalId = user.SsoExternalId;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -104,4 +105,10 @@ public class MemberResponseModel : MemberBaseModel, IResponseModel
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[Required]
|
[Required]
|
||||||
public bool ResetPasswordEnrolled { get; }
|
public bool ResetPasswordEnrolled { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// SSO external identifier for linking this member to an identity provider.
|
||||||
|
/// </summary>
|
||||||
|
/// <example>sso_external_id_123456</example>
|
||||||
|
public string SsoExternalId { get; set; }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user