linux-packaging-mono/mcs/class/System/ReferenceSources/DynamicRoleClaimProvider.cs
Xamarin Public Jenkins (auto-signing) ef583813eb Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
2019-07-26 19:53:28 +00:00

21 lines
723 B
C#

//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
using System.Collections.Generic;
using System.ComponentModel;
namespace System.Security.Claims
{
public static class DynamicRoleClaimProvider
{
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use ClaimsAuthenticationManager to add claims to a ClaimsIdentity", true)]
public static void AddDynamicRoleClaims(ClaimsIdentity claimsIdentity, IEnumerable<Claim> claims)
{
claimsIdentity.ExternalClaims.Add(claims);
}
}
}