Skip to content

Commit

Permalink
Fixed static currentPrincipal (issue apereo#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlo Marchiandi committed Mar 22, 2024
1 parent a3a86b9 commit 37e4146
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DotNetCasClient/CasAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static CasAuthentication()
/// </summary>
public static ICasPrincipal CurrentPrincipal
{
get { return currentPrincipal; }
get { return Thread.CurrentPrincipal as ICasPrincipal; }
}

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions DotNetCasClient/DotNetCasClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<TargetFrameworks>net45</TargetFrameworks>
<OldToolsVersion>2.0</OldToolsVersion>
<ProjectGuid>{883A296E-C898-4D1F-9ED9-DE7569DEFB3D}</ProjectGuid>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>EligoDotNetCasClient</Title>
<PackageId>EligoDotNetCasClient</PackageId>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)'=='net45'">
<DefineConstants>NET45</DefineConstants>
Expand Down
7 changes: 7 additions & 0 deletions DotNetCasClient/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="EligoCasClient" value="https://pkgs.dev.azure.com/eligoidtech/_packaging/EligoCasClient/nuget/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit 37e4146

Please sign in to comment.