mirror of
https://github.com/bitwarden/server.git
synced 2025-01-31 23:21:22 +01:00
16 lines
349 B
C#
16 lines
349 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Security.Claims;
|
|||
|
|
|||
|
namespace Bit.Core.Utilities
|
|||
|
{
|
|||
|
public static class ClaimsExtensions
|
|||
|
{
|
|||
|
public static bool HasSsoIdP(this IEnumerable<Claim> claims)
|
|||
|
{
|
|||
|
return claims.Any(c => c.Type == "idp" && c.Value == "sso");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|