Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…r3.Samples into dev

# Conflicts:
#	source/MVC ViewService/MvcViewServiceSample/MvcViewServiceSample.csproj
#	source/MVC ViewService/MvcViewServiceSample/packages.config
#	source/SelfHost (InMem with WS-Fed)/SelfHost/SelfHost (InMem with WS-Fed).csproj
#	source/SelfHost (InMem with WS-Fed)/SelfHost/packages.config
  • Loading branch information
leastprivilege committed Feb 22, 2016
2 parents 00e710b + d6a6d1c commit c9ec9c5
Show file tree
Hide file tree
Showing 78 changed files with 214 additions and 3,922 deletions.
144 changes: 0 additions & 144 deletions source/AspNetIdentity/WebHost/IdSvr/Clients.cs

This file was deleted.

1 change: 1 addition & 0 deletions source/AspNetIdentity/WebHost/IdSvr/Factory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.InMemory;
using IdentityServer3.Core.Services.Default;
using IdentityServer3.Host.Config;

namespace WebHost.IdSvr
{
Expand Down
57 changes: 0 additions & 57 deletions source/AspNetIdentity/WebHost/IdSvr/Scopes.cs

This file was deleted.

4 changes: 2 additions & 2 deletions source/AspNetIdentity/WebHost/IdSvr/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public UserService(UserManager userMgr)
protected override async Task<IEnumerable<System.Security.Claims.Claim>> GetClaimsFromAccount(User user) {
var claims = (await base.GetClaimsFromAccount(user)).ToList();
if (!String.IsNullOrWhiteSpace(user.FirstName)) {
claims.Add(new Claim("given_name", user.FirstName));
claims.Add(new System.Security.Claims.Claim("given_name", user.FirstName));
}
if (!String.IsNullOrWhiteSpace(user.LastName)) {
claims.Add(new Claim("family_name", user.LastName));
claims.Add(new System.Security.Claims.Claim("family_name", user.LastName));
}

return claims;
Expand Down
8 changes: 4 additions & 4 deletions source/AspNetIdentity/WebHost/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
<connectionStrings>
<add name="AspId" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="AspId_CustomPK" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity.CustomPK;Integrated Security=True" providerName="System.Data.SqlClient" />
<!--<add name="AspId" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="AspId_CustomPK" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity.CustomPK;Integrated Security=True" providerName="System.Data.SqlClient" />-->
<!--<add name="AspId" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="AspId_CustomPK" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity.CustomPK;Integrated Security=True" providerName="System.Data.SqlClient" />-->
<add name="AspId" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="AspId_CustomPK" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity.CustomPK;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"></modules>
Expand Down
17 changes: 12 additions & 5 deletions source/AspNetIdentity/WebHost/WebHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
<HintPath>..\packages\IdentityModel.1.0.0\lib\net45\IdentityModel.Net45.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="IdentityServer3, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\IdentityServer3.2.0.0-build00174\lib\net45\IdentityServer3.dll</HintPath>
<Reference Include="IdentityServer3, Version=2.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\IdentityServer3.2.4.1-build00428\lib\net45\IdentityServer3.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down Expand Up @@ -133,6 +133,7 @@
<Reference Include="System.EnterpriseServices" />
</ItemGroup>
<ItemGroup>
<Content Include="index.html" />
<Content Include="packages.config" />
<EmbeddedResource Include="IdSvr\idsrv3test.pfx" />
<None Include="Web.Debug.config">
Expand All @@ -143,19 +144,25 @@
</None>
</ItemGroup>
<ItemGroup>
<Content Include="Web.config" />
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\_sharedConfiguration\Clients.cs">
<Link>IdSvr\Clients.cs</Link>
</Compile>
<Compile Include="..\..\_sharedConfiguration\Scopes.cs">
<Link>IdSvr\Scopes.cs</Link>
</Compile>
<Compile Include="App_Packages\IdentityServer3.AspNetIdentity\IdentityServer3.AspNetIdentity.cs" />
<Compile Include="AspId\CustomEntitiesWithIntKey.cs" />
<Compile Include="AspId\SimpleEntities.cs" />
<Compile Include="IdMgr\CustomIdentityManagerServiceWithIntKeys.cs" />
<Compile Include="IdMgr\SimpleIdentityManagerService.cs" />
<Compile Include="IdSvr\Certificate.cs" />
<Compile Include="IdSvr\Clients.cs" />
<Compile Include="IdSvr\CustomUserService.cs" />
<Compile Include="IdSvr\Factory.cs" />
<Compile Include="IdSvr\Scopes.cs" />
<Compile Include="IdSvr\UserService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup.cs" />
Expand Down
14 changes: 14 additions & 0 deletions source/AspNetIdentity/WebHost/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<h1>ASP.NET Identity Demo</h1>
<ul>
<li><a href="/core">IdentityServer Welcome Page</a></li>
<li><a href="/admin">IdentityManager User Administration</a></li>
</ul>
</body>
</html>
4 changes: 2 additions & 2 deletions source/AspNetIdentity/WebHost/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<package id="IdentityManager" version="1.0.0-beta5-5" targetFramework="net45" />
<package id="IdentityManager.AspNetIdentity" version="1.0.0-beta5-1" targetFramework="net45" />
<package id="IdentityModel" version="1.0.0" targetFramework="net45" />
<package id="IdentityServer3" version="2.0.0-build00174" targetFramework="net45" />
<package id="IdentityServer3.AspNetIdentity" version="2.0.0-build00036" targetFramework="net45" />
<package id="IdentityServer3" version="2.4.1-build00428" targetFramework="net45" />
<package id="IdentityServer3.AspNetIdentity" version="2.0.0-build00037" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.Owin" version="3.0.1" targetFramework="net45" />
Expand Down
203 changes: 0 additions & 203 deletions source/AspNetIdentity_2fa/WebHost/IdSvr/Clients.cs

This file was deleted.

1 change: 1 addition & 0 deletions source/AspNetIdentity_2fa/WebHost/IdSvr/Factory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.InMemory;
using IdentityServer3.Core.Services.Default;
using IdentityServer3.Host.Config;

namespace WebHost.IdSvr
{
Expand Down
58 changes: 0 additions & 58 deletions source/AspNetIdentity_2fa/WebHost/IdSvr/Scopes.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

<h2>Two Factor</h2>
<p>Enter the code sent to your mobile device</p>
<p>Enter the code sent to your mobile device (any value will work -- it's just a sample)</p>
<form method="post">
@if (ViewData["message"] != null)
{
Expand Down
4 changes: 2 additions & 2 deletions source/AspNetIdentity_2fa/WebHost/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
</appSettings>
<connectionStrings>
<add name="AspId" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity.2fa;Integrated Security=True" providerName="System.Data.SqlClient" />
<!--<add name="AspId" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity.2fa;Integrated Security=True" providerName="System.Data.SqlClient" />-->
<!--<add name="AspId" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=IdentityServer3.AspNetIdentity.2fa;Integrated Security=True" providerName="System.Data.SqlClient" />-->
<add name="AspId" connectionString="Data Source=(LocalDb)\MSSQLLocalDb;Initial Catalog=IdentityServer3.AspNetIdentity.2fa;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
Expand Down
13 changes: 9 additions & 4 deletions source/AspNetIdentity_2fa/WebHost/WebHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
<HintPath>..\packages\IdentityModel.1.0.0\lib\net45\IdentityModel.Net45.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="IdentityServer3, Version=2.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\IdentityServer3.2.1.2-build00267\lib\net45\IdentityServer3.dll</HintPath>
<Reference Include="IdentityServer3, Version=2.4.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\IdentityServer3.2.4.1-build00428\lib\net45\IdentityServer3.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Microsoft.AspNet.Identity.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down Expand Up @@ -151,6 +151,7 @@
<Content Include="Content\Site.css" />
<Content Include="fonts\glyphicons-halflings-regular.svg" />
<Content Include="Global.asax" />
<Content Include="index.html" />
<Content Include="Scripts\bootstrap.js" />
<Content Include="Scripts\bootstrap.min.js" />
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
Expand All @@ -166,6 +167,12 @@
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\_sharedConfiguration\Clients.cs">
<Link>IdSvr\Clients.cs</Link>
</Compile>
<Compile Include="..\..\_sharedConfiguration\Scopes.cs">
<Link>IdSvr\Scopes.cs</Link>
</Compile>
<Compile Include="App_Packages\IdentityServer3.AspNetIdentity\IdentityServer3.AspNetIdentity.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="AspId\SimpleEntities.cs" />
Expand All @@ -175,9 +182,7 @@
</Compile>
<Compile Include="IdMgr\SimpleIdentityManagerService.cs" />
<Compile Include="IdSvr\Certificate.cs" />
<Compile Include="IdSvr\Clients.cs" />
<Compile Include="IdSvr\Factory.cs" />
<Compile Include="IdSvr\Scopes.cs" />
<Compile Include="IdSvr\UserService.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Startup.cs" />
Expand Down
14 changes: 14 additions & 0 deletions source/AspNetIdentity_2fa/WebHost/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<h1>ASP.NET Identity w/ 2fa Demo</h1>
<ul>
<li><a href="/core">IdentityServer Welcome Page</a></li>
<li><a href="/admin">IdentityManager User Administration</a></li>
</ul>
</body>
</html>
4 changes: 2 additions & 2 deletions source/AspNetIdentity_2fa/WebHost/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<package id="IdentityManager" version="1.0.0-beta5-5" targetFramework="net45" />
<package id="IdentityManager.AspNetIdentity" version="1.0.0-beta5-1" targetFramework="net45" />
<package id="IdentityModel" version="1.0.0" targetFramework="net45" />
<package id="IdentityServer3" version="2.1.2-build00267" targetFramework="net45" />
<package id="IdentityServer3.AspNetIdentity" version="2.0.0-build00024" targetFramework="net45" />
<package id="IdentityServer3" version="2.4.1-build00428" targetFramework="net45" />
<package id="IdentityServer3.AspNetIdentity" version="2.0.0-build00037" targetFramework="net45" />
<package id="jQuery" version="2.1.4" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.Core" version="2.2.1" targetFramework="net45" />
<package id="Microsoft.AspNet.Identity.EntityFramework" version="2.2.1" targetFramework="net45" />
Expand Down
144 changes: 0 additions & 144 deletions source/CustomHrd/CustomHrd/Config/Clients.cs

This file was deleted.

36 changes: 0 additions & 36 deletions source/CustomHrd/CustomHrd/Config/Scopes.cs

This file was deleted.

33 changes: 0 additions & 33 deletions source/CustomHrd/CustomHrd/Config/Users.cs

This file was deleted.

Loading

0 comments on commit c9ec9c5

Please sign in to comment.