mirror of
https://github.com/bitwarden/server.git
synced 2025-07-11 21:03:47 -05:00
Modified sso details stored procedure to remove policy checks or an organization (#2831)
This commit is contained in:
@ -12,20 +12,15 @@ BEGIN
|
||||
O.Id AS OrganizationId,
|
||||
O.[Name] AS OrganizationName,
|
||||
S.Enabled AS SsoAvailable,
|
||||
P.Enabled AS SsoRequired,
|
||||
O.Identifier AS OrganizationIdentifier,
|
||||
OD.VerifiedDate,
|
||||
P.[Type] AS PolicyType,
|
||||
OD.DomainName
|
||||
FROM
|
||||
[dbo].[OrganizationView] O
|
||||
INNER JOIN [dbo].[OrganizationDomainView] OD
|
||||
ON O.Id = OD.OrganizationId
|
||||
LEFT JOIN [dbo].[PolicyView] P
|
||||
ON O.Id = P.OrganizationId
|
||||
LEFT JOIN [dbo].[Ssoconfig] S
|
||||
ON O.Id = S.OrganizationId
|
||||
WHERE OD.DomainName = @Domain
|
||||
AND O.Enabled = 1
|
||||
AND (P.Id is NULL OR (P.Id IS NOT NULL AND P.[Type] = 4)) -- SSO Type
|
||||
END
|
Reference in New Issue
Block a user