TITcs.SharePoint.Libs by Stiven F. Câmara

<PackageReference Include="TITcs.SharePoint.Libs" Version="1.0.0" />

.NET API 60,016,200 bytes

 SPSecurityContext

public static class SPSecurityContext
public static bool IsWindowsIdentityAvailable { get; }

public static SecurityToken SecurityTokenForContext(Uri context)

public static SecurityToken SecurityTokenForFormsAuthentication(Uri context, string membershipProviderName, string roleProviderName, string username, string password)

public static SecurityToken SecurityTokenForFormsAuthentication(Uri context, string membershipProviderName, string roleProviderName, string username, string password, SPFormsAuthenticationOption options)