Skip to content

Commit

Permalink
update CustomUserService sample nugets and shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Feb 21, 2016
1 parent 50fcb51 commit d067ef2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 397 deletions.
320 changes: 0 additions & 320 deletions source/CustomUserService/CustomUserService/Config/Clients.cs

This file was deleted.

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

This file was deleted.

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

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
</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.CSharp" />
Expand Down Expand Up @@ -190,13 +190,19 @@
<Content Include="Web.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\_sharedConfiguration\Clients.cs">
<Link>Config\Clients.cs</Link>
</Compile>
<Compile Include="..\..\_sharedConfiguration\Scopes.cs">
<Link>Config\Scopes.cs</Link>
</Compile>
<Compile Include="..\..\_sharedConfiguration\Users.cs">
<Link>Config\Users.cs</Link>
</Compile>
<Compile Include="App_Start\BundleConfig.cs" />
<Compile Include="App_Start\FilterConfig.cs" />
<Compile Include="App_Start\RouteConfig.cs" />
<Compile Include="Config\Certificate.cs" />
<Compile Include="Config\Clients.cs" />
<Compile Include="Config\Scopes.cs" />
<Compile Include="Config\Users.cs" />
<Compile Include="Controllers\EulaController.cs" />
<Compile Include="Controllers\RegisterFirstExternalRegistrationController.cs" />
<Compile Include="Controllers\LocalRegistrationController.cs" />
Expand Down
5 changes: 3 additions & 2 deletions source/CustomUserService/CustomUserService/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using IdentityServer3.Core.Services;
using IdentityServer3.Core.Services.Default;
using Serilog;
using IdentityServer3.Host.Config;

namespace SampleApp
{
Expand All @@ -31,9 +32,9 @@ public void Configuration(IAppBuilder app)
//var userService = new ExternalRegistrationUserService();
//var userService = new EulaAtLoginUserService();
var userService = new LocalRegistrationUserService();


// note: for the sample this registration is a singletone (not what you want in production probably)
factory.UserService = new Registration<IUserService>(resolver => userService);
factory.CorsPolicyService = new Registration<ICorsPolicyService>(new DefaultCorsPolicyService { AllowAll = true });

var options = new IdentityServerOptions
{
Expand Down
2 changes: 1 addition & 1 deletion source/CustomUserService/CustomUserService/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<packages>
<package id="Antlr" version="3.5.0.2" targetFramework="net45" />
<package id="bootstrap" version="3.3.5" targetFramework="net45" />
<package id="IdentityServer3" version="2.0.0-build00174" targetFramework="net45" />
<package id="IdentityServer3" version="2.4.1-build00428" targetFramework="net45" />
<package id="jQuery" version="2.1.4" targetFramework="net45" />
<package id="jQuery.Validation" version="1.14.0" targetFramework="net45" />
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" />
Expand Down

0 comments on commit d067ef2

Please sign in to comment.