Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/sdl/dxa-content-management
Browse files Browse the repository at this point in the history
… into release/2.2

# Conflicts:
#	cms/content/sites9/all-publications/Binaries/2-70-2048.tbbasm
#	cms/content/sites9/all-publications/Binaries/2-80-2048.tbbasm
#	cms/content/sites9/framework-only/Binaries/2-70-2048.tbbasm
#	cms/content/sites9/framework-only/Binaries/2-80-2048.tbbasm
#	cms/content/sites9/master-only/Binaries/2-70-2048.tbbasm
#	cms/content/sites9/master-only/Binaries/2-80-2048.tbbasm
  • Loading branch information
majiccode committed Mar 12, 2021
2 parents 5e6aacf + ed850db commit 71692ea
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,19 @@
<Reference Include="System.Xml.Linq" />
<Reference Include="Tridion.Common">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\_references\cm-8.1\Tridion.Common.dll</HintPath>
<HintPath>..\..\_references\cm-9.1\Tridion.Common.dll</HintPath>
</Reference>
<Reference Include="Tridion.ContentManager.CoreService.Client">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\_references\cm-8.1\Tridion.ContentManager.CoreService.Client.dll</HintPath>
<HintPath>..\..\_references\cm-9.1\Tridion.ContentManager.CoreService.Client.dll</HintPath>
</Reference>
<Reference Include="Tridion.Logging">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\_references\cm-8.1\Tridion.Logging.dll</HintPath>
<HintPath>..\..\_references\cm-9.1\Tridion.Logging.dll</HintPath>
</Reference>
<Reference Include="Tridion.Security">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\_references\cm-9.1\Tridion.Security.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public static class Constants
public const string DXA_RESOLVER_CONFIGURATION_PREFIX = "dcr";
public const string DXA_RESOLVER_CONFIGURATION_NAME = "dxa:CustomResolver";
public const string DXA_RESOLVER_CONFIGURATION_NAMESPACE = "http://www.sdltridion.com/2017/DXACustomResolver";
public const string CLIENT_ENDPOINT_NAME_81 = "netSamlTcp_201501";
public const string CLIENT_ENDPOINT_NAME_81 = "netSamlTcp_201701";

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,16 @@ private static void SetClaimsCredential(ClaimsClientCredentials clientCredential
if (IsSamlSupported())
{
// Our own LDAP or SSO authentication has been used. Use the ClaimSet it provided as client credentials.
var user = (ClaimsPrincipal)HttpContext.Current.User;
clientCredentials.Claims = user.Claims;
var user = HttpContext.Current.User as ClaimsPrincipal;
if (user == null)
{
var tridionUser = HttpContext.Current.User as Tridion.Security.ClaimsPrincipal;
clientCredentials.Claims = tridionUser.Claims;
}
else
{
clientCredentials.Claims = user.Claims;
}
}
else
{
Expand All @@ -98,7 +106,9 @@ private static bool IsSamlSupported()
using (Tracer.GetTracer().StartTrace())
{
var user = HttpContext.Current.User as ClaimsPrincipal;
return user != null;
var trdidionUser = HttpContext.Current.User as Tridion.Security.ClaimsPrincipal;

return user != null || trdidionUser!= null;
}
}
}
Expand Down
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ SDL Digital Experience Accelerator CM-side framework
Build status
------------
- Develop: ![Build Status](https://github.com/sdl/dxa-content-management/workflows/Build/badge.svg?branch=develop)
- 2.2: ![Build Status](https://github.com/sdl/dxa-content-management/workflows/Build/badge.svg?branch=release/2.2)
- 1.8: ![Build Status](https://github.com/sdl/dxa-content-management/workflows/Build/badge.svg?branch=release/1.8)

Prerequisites
Expand Down Expand Up @@ -82,22 +81,13 @@ To publish to NuGet.org you must have the correct API key registered.

Repositories
------------
The following repositories with DXA source code are available:

- https://github.com/sdl/dxa-content-management - CM-side framework (.NET Template Building Blocks)
- https://github.com/sdl/dxa-html-design - Whitelabel HTML Design
- https://github.com/sdl/dxa-model-service - DXA Model Service (Java)
- https://github.com/sdl/dxa-modules - Modules (.NET and Java)
- https://github.com/sdl/dxa-web-application-dotnet - ASP.NET MVC web application (incl. framework)
- https://github.com/sdl/dxa-web-application-java - Java Spring MVC web application (incl. framework)

You can find all the DXA related repositories [here](https://github.com/sdl/?q=dxa&type=source&language=)

Branches and Contributions
--------------------------
We are using the following branching strategy:

- `master` - Represents the latest stable version. This may be a pre-release version (tagged as `DXA x.y Sprint z`). Updated each development Sprint (approx. bi-weekly).
- `develop` - Represents the latest development version. Updated very frequently (typically nightly).
- `develop` - Represents the latest development version.
- `release/x.y` - Represents the x.y Release. If hotfixes are applicable, they will be applied to the appropriate release branch, so that the release branch actually represent the initial release plus hotfixes.

All releases (including pre-releases and hotfix releases) are tagged.
Expand Down
Binary file added _references/cm-9.1/Tridion.Common.dll
Binary file not shown.
Binary file not shown.
Binary file added _references/cm-9.1/Tridion.Logging.dll
Binary file not shown.
Binary file added _references/cm-9.1/Tridion.Security.dll
Binary file not shown.
2 changes: 0 additions & 2 deletions _travis.yml

This file was deleted.

Binary file modified cms/content/sites9/all-publications/Binaries/2-70-2048.tbbasm
Binary file not shown.
Binary file modified cms/content/sites9/all-publications/Binaries/2-80-2048.tbbasm
Binary file not shown.
Binary file modified cms/content/sites9/framework-only/Binaries/2-70-2048.tbbasm
Binary file not shown.
Binary file modified cms/content/sites9/framework-only/Binaries/2-80-2048.tbbasm
Binary file not shown.
Binary file modified cms/content/sites9/master-only/Binaries/2-70-2048.tbbasm
Binary file not shown.
Binary file modified cms/content/sites9/master-only/Binaries/2-80-2048.tbbasm
Binary file not shown.

0 comments on commit 71692ea

Please sign in to comment.