This repository has been archived by the owner on Jun 19, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4aa6129
commit 64768d0
Showing
44 changed files
with
1,496 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F65B7E9E-D386-47C2-877A-8D906B32B1F0}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{3B19361A-DCE4-4549-B9CB-5CCAC7EE2E91}" | ||
ProjectSection(SolutionItems) = preProject | ||
global.json = global.json | ||
EndProjectSection | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestClient", "src\TestClient\TestClient.xproj", "{F92A9F9D-B901-4860-9B16-29344305032A}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Katana API using IS4 and X509", "src\KatanaApiIdSrv4withX509\Katana API using IS4 and X509.csproj", "{B431DF2E-47F6-4055-82A4-0829A1F70847}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IdentityServers", "IdentityServers", "{8A9ECE27-8F8D-4ADF-8DBC-B4A6653D588D}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "APIs", "APIs", "{99ED7F00-B793-4EE6-8C19-823B7663829B}" | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IdentityServer4 with RSA", "src\IdentityServer4withRSA\IdentityServer4 with RSA.xproj", "{0ADB3918-1E8E-4491-9135-9DB5016ADB88}" | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "IdentityServer4 with X509", "src\IdentityServer4withX509\IdentityServer4 with X509.xproj", "{7EA3B386-D72B-4B18-998C-FE13FE16493F}" | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Core Api with IS4 and RSA", "src\CoreApiIdSrv4withRSA\Core Api with IS4 and RSA.xproj", "{910024BB-822C-4848-B293-0A2585DF4D84}" | ||
EndProject | ||
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Core API with IS4 and X509", "src\CoreApiIdSrv4withX509\Core API with IS4 and X509.xproj", "{91627A53-E287-4B38-A184-73E474803BFF}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Katana API with IS4 and RSA", "KatanaApiIdSrv4withRSA\Katana API with IS4 and RSA.csproj", "{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{F92A9F9D-B901-4860-9B16-29344305032A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F92A9F9D-B901-4860-9B16-29344305032A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F92A9F9D-B901-4860-9B16-29344305032A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F92A9F9D-B901-4860-9B16-29344305032A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B431DF2E-47F6-4055-82A4-0829A1F70847}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B431DF2E-47F6-4055-82A4-0829A1F70847}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B431DF2E-47F6-4055-82A4-0829A1F70847}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B431DF2E-47F6-4055-82A4-0829A1F70847}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{0ADB3918-1E8E-4491-9135-9DB5016ADB88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0ADB3918-1E8E-4491-9135-9DB5016ADB88}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0ADB3918-1E8E-4491-9135-9DB5016ADB88}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0ADB3918-1E8E-4491-9135-9DB5016ADB88}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{7EA3B386-D72B-4B18-998C-FE13FE16493F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{7EA3B386-D72B-4B18-998C-FE13FE16493F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{7EA3B386-D72B-4B18-998C-FE13FE16493F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{7EA3B386-D72B-4B18-998C-FE13FE16493F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{910024BB-822C-4848-B293-0A2585DF4D84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{910024BB-822C-4848-B293-0A2585DF4D84}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{910024BB-822C-4848-B293-0A2585DF4D84}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{910024BB-822C-4848-B293-0A2585DF4D84}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{91627A53-E287-4B38-A184-73E474803BFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{91627A53-E287-4B38-A184-73E474803BFF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{91627A53-E287-4B38-A184-73E474803BFF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{91627A53-E287-4B38-A184-73E474803BFF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{F92A9F9D-B901-4860-9B16-29344305032A} = {F65B7E9E-D386-47C2-877A-8D906B32B1F0} | ||
{B431DF2E-47F6-4055-82A4-0829A1F70847} = {99ED7F00-B793-4EE6-8C19-823B7663829B} | ||
{8A9ECE27-8F8D-4ADF-8DBC-B4A6653D588D} = {F65B7E9E-D386-47C2-877A-8D906B32B1F0} | ||
{99ED7F00-B793-4EE6-8C19-823B7663829B} = {F65B7E9E-D386-47C2-877A-8D906B32B1F0} | ||
{0ADB3918-1E8E-4491-9135-9DB5016ADB88} = {8A9ECE27-8F8D-4ADF-8DBC-B4A6653D588D} | ||
{7EA3B386-D72B-4B18-998C-FE13FE16493F} = {8A9ECE27-8F8D-4ADF-8DBC-B4A6653D588D} | ||
{910024BB-822C-4848-B293-0A2585DF4D84} = {99ED7F00-B793-4EE6-8C19-823B7663829B} | ||
{91627A53-E287-4B38-A184-73E474803BFF} = {99ED7F00-B793-4EE6-8C19-823B7663829B} | ||
{D66FBCA7-8774-4F4D-949B-0F81E33C56AB} = {99ED7F00-B793-4EE6-8C19-823B7663829B} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-3.0.1.0" newVersion="3.0.1.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.IdentityModel.Tokens.Jwt" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.20622.1351" newVersion="4.0.20622.1351" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.Owin.Logging; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace KatanaApi | ||
{ | ||
internal class ConsoleLoggerFactory : ILoggerFactory | ||
{ | ||
public ILogger Create(string name) | ||
{ | ||
return new ConsoleLogger(); | ||
} | ||
|
||
private class ConsoleLogger : ILogger | ||
{ | ||
public bool WriteCore(TraceEventType eventType, int eventId, object state, Exception exception, Func<object, Exception, string> formatter) | ||
{ | ||
Console.WriteLine(formatter(state, exception)); | ||
|
||
return true; | ||
} | ||
} | ||
} | ||
} |
129 changes: 129 additions & 0 deletions
129
KatanaApiIdSrv4withRSA/Katana API with IS4 and RSA.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{D66FBCA7-8774-4F4D-949B-0F81E33C56AB}</ProjectGuid> | ||
<OutputType>Exe</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>KatanaApiIdSrv4withRSA</RootNamespace> | ||
<AssemblyName>KatanaApiIdSrv4withRSA</AssemblyName> | ||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="IdentityModel, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\IdentityModel.1.9.2\lib\net45\IdentityModel.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="IdentityServer3.AccessTokenValidation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\IdentityServer3.AccessTokenValidation.2.12.0\lib\net45\IdentityServer3.AccessTokenValidation.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.IdentityModel.Protocol.Extensions, Version=1.0.2.33, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.IdentityModel.Protocol.Extensions.1.0.2.206221351\lib\net45\Microsoft.IdentityModel.Protocol.Extensions.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.3.0.1\lib\net45\Microsoft.Owin.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Diagnostics, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Diagnostics.3.0.1\lib\net45\Microsoft.Owin.Diagnostics.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.3.0.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Hosting, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Hosting.3.0.1\lib\net45\Microsoft.Owin.Hosting.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Security, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Security.3.0.1\lib\net45\Microsoft.Owin.Security.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Security.Jwt, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Security.Jwt.3.0.1\lib\net45\Microsoft.Owin.Security.Jwt.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Owin.Security.OAuth, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.Owin.Security.OAuth.3.0.1\lib\net45\Microsoft.Owin.Security.OAuth.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json, Version=8.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Newtonsoft.Json.8.0.3\lib\net45\Newtonsoft.Json.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.IdentityModel" /> | ||
<Reference Include="System.IdentityModel.Tokens.Jwt, Version=4.0.20622.1351, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\System.IdentityModel.Tokens.Jwt.4.0.2.206221351\lib\net45\System.IdentityModel.Tokens.Jwt.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.3\lib\net45\System.Net.Http.Formatting.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System.Runtime.Caching" /> | ||
<Reference Include="System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System.Web.Http.Owin, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\packages\Microsoft.AspNet.WebApi.Owin.5.2.3\lib\net45\System.Web.Http.Owin.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="ConsoleLogger.cs" /> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="TestController.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="App.config" /> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using IdentityServer3.AccessTokenValidation; | ||
using Microsoft.Owin.Hosting; | ||
using Microsoft.Owin.Logging; | ||
using Owin; | ||
using System; | ||
using System.Web.Http; | ||
|
||
namespace KatanaApi | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
Console.Title = "Katana API using IS4 and RSA"; | ||
|
||
using (WebApp.Start<Startup>("http://localhost:6051")) | ||
{ | ||
Console.ReadLine(); | ||
} | ||
} | ||
} | ||
|
||
internal class Startup | ||
{ | ||
public void Configuration(IAppBuilder app) | ||
{ | ||
app.SetLoggerFactory(new ConsoleLoggerFactory()); | ||
|
||
var config = new HttpConfiguration(); | ||
config.MapHttpAttributeRoutes(); | ||
|
||
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions | ||
{ | ||
Authority = "http://localhost:5001", | ||
RequiredScopes = new[] { "api" }, | ||
|
||
DelayLoadMetadata = true | ||
}); | ||
|
||
app.UseWebApi(config); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
[assembly: AssemblyTitle("KatanaApiIdSrv4withRSA")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("KatanaApiIdSrv4withRSA")] | ||
[assembly: AssemblyCopyright("Copyright © 2016")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// Setting ComVisible to false makes the types in this assembly not visible | ||
// to COM components. If you need to access a type in this assembly from | ||
// COM, set the ComVisible attribute to true on that type. | ||
[assembly: ComVisible(false)] | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("d66fbca7-8774-4f4d-949b-0f81e33c56ab")] | ||
|
||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Build and Revision Numbers | ||
// by using the '*' as shown below: | ||
// [assembly: AssemblyVersion("1.0.*")] | ||
[assembly: AssemblyVersion("1.0.0.0")] | ||
[assembly: AssemblyFileVersion("1.0.0.0")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Web.Http; | ||
|
||
namespace KatanaApi | ||
{ | ||
[Route("test")] | ||
[Authorize] | ||
public class TestController : ApiController | ||
{ | ||
public string Get() | ||
{ | ||
return "OK"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="IdentityModel" version="1.9.2" targetFramework="net452" /> | ||
<package id="IdentityServer3.AccessTokenValidation" version="2.12.0" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebApi.Core" version="5.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebApi.Owin" version="5.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.IdentityModel.Protocol.Extensions" version="1.0.2.206221351" targetFramework="net452" /> | ||
<package id="Microsoft.Owin" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Diagnostics" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Host.HttpListener" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Hosting" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Security" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Security.Jwt" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.Security.OAuth" version="3.0.1" targetFramework="net452" /> | ||
<package id="Microsoft.Owin.SelfHost" version="3.0.1" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="8.0.3" targetFramework="net452" /> | ||
<package id="Owin" version="1.0" targetFramework="net452" /> | ||
<package id="System.IdentityModel.Tokens.Jwt" version="4.0.2.206221351" targetFramework="net452" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"projects": [ "src", "test" ], | ||
"sdk": { | ||
"version": "1.0.0-preview2-003131" | ||
} | ||
} |
Oops, something went wrong.