Skip to content

Commit 95502ed

Browse files
committed
add initial source
1 parent 7ede841 commit 95502ed

12 files changed

Lines changed: 749 additions & 0 deletions
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HttpAuthModule.SampleWeb.Default" %>
2+
3+
<!DOCTYPE html>
4+
5+
<html xmlns="http://www.w3.org/1999/xhtml">
6+
<head runat="server">
7+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
8+
<title></title>
9+
</head>
10+
<body>
11+
<form id="form1" runat="server">
12+
<div>
13+
14+
</div>
15+
</form>
16+
</body>
17+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using System.Web.UI;
6+
using System.Web.UI.WebControls;
7+
8+
namespace HttpAuthModule.SampleWeb
9+
{
10+
public partial class Default : System.Web.UI.Page
11+
{
12+
protected void Page_Load(object sender, EventArgs e)
13+
{
14+
15+
}
16+
}
17+
}

HttpAuthModule.SampleWeb/Default.aspx.designer.cs

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProductVersion>
8+
</ProductVersion>
9+
<SchemaVersion>2.0</SchemaVersion>
10+
<ProjectGuid>{BC5ECB90-61AD-4711-9711-1BF7635415C3}</ProjectGuid>
11+
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
12+
<OutputType>Library</OutputType>
13+
<AppDesignerFolder>Properties</AppDesignerFolder>
14+
<RootNamespace>HttpAuthModule.SampleWeb</RootNamespace>
15+
<AssemblyName>HttpAuthModule.SampleWeb</AssemblyName>
16+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
17+
<UseIISExpress>true</UseIISExpress>
18+
<IISExpressSSLPort />
19+
<IISExpressAnonymousAuthentication />
20+
<IISExpressWindowsAuthentication />
21+
<IISExpressUseClassicPipelineMode />
22+
</PropertyGroup>
23+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
24+
<DebugSymbols>true</DebugSymbols>
25+
<DebugType>full</DebugType>
26+
<Optimize>false</Optimize>
27+
<OutputPath>bin\</OutputPath>
28+
<DefineConstants>DEBUG;TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
33+
<DebugType>pdbonly</DebugType>
34+
<Optimize>true</Optimize>
35+
<OutputPath>bin\</OutputPath>
36+
<DefineConstants>TRACE</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<WarningLevel>4</WarningLevel>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Web.DynamicData" />
43+
<Reference Include="System.Web.Entity" />
44+
<Reference Include="System.Web.ApplicationServices" />
45+
<Reference Include="System.ComponentModel.DataAnnotations" />
46+
<Reference Include="System" />
47+
<Reference Include="System.Data" />
48+
<Reference Include="System.Core" />
49+
<Reference Include="System.Data.DataSetExtensions" />
50+
<Reference Include="System.Web.Extensions" />
51+
<Reference Include="System.Xml.Linq" />
52+
<Reference Include="System.Drawing" />
53+
<Reference Include="System.Web" />
54+
<Reference Include="System.Xml" />
55+
<Reference Include="System.Configuration" />
56+
<Reference Include="System.Web.Services" />
57+
<Reference Include="System.EnterpriseServices" />
58+
</ItemGroup>
59+
<ItemGroup>
60+
<Content Include="Default.aspx" />
61+
<Content Include="Web.config" />
62+
</ItemGroup>
63+
<ItemGroup>
64+
<Compile Include="Default.aspx.cs">
65+
<DependentUpon>Default.aspx</DependentUpon>
66+
<SubType>ASPXCodeBehind</SubType>
67+
</Compile>
68+
<Compile Include="Default.aspx.designer.cs">
69+
<DependentUpon>Default.aspx</DependentUpon>
70+
</Compile>
71+
<Compile Include="Properties\AssemblyInfo.cs" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<None Include="Web.Debug.config">
75+
<DependentUpon>Web.config</DependentUpon>
76+
</None>
77+
<None Include="Web.Release.config">
78+
<DependentUpon>Web.config</DependentUpon>
79+
</None>
80+
</ItemGroup>
81+
<ItemGroup>
82+
<ProjectReference Include="..\HttpAuthModule\HttpAuthModule.csproj">
83+
<Project>{1a44ded2-08b4-48dc-972f-a0cf24ad59a4}</Project>
84+
<Name>HttpAuthModule</Name>
85+
</ProjectReference>
86+
</ItemGroup>
87+
<PropertyGroup>
88+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
89+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
90+
</PropertyGroup>
91+
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
92+
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
93+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />
94+
<ProjectExtensions>
95+
<VisualStudio>
96+
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
97+
<WebProjectProperties>
98+
<UseIIS>True</UseIIS>
99+
<AutoAssignPort>True</AutoAssignPort>
100+
<DevelopmentServerPort>0</DevelopmentServerPort>
101+
<DevelopmentServerVPath>/</DevelopmentServerVPath>
102+
<IISUrl>http://localhost:15367/</IISUrl>
103+
<NTLMAuthentication>False</NTLMAuthentication>
104+
<UseCustomServer>False</UseCustomServer>
105+
<CustomServerUrl>
106+
</CustomServerUrl>
107+
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
108+
</WebProjectProperties>
109+
</FlavorProperties>
110+
</VisualStudio>
111+
</ProjectExtensions>
112+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
113+
Other similar extension points exist, see Microsoft.Common.targets.
114+
<Target Name="BeforeBuild">
115+
</Target>
116+
<Target Name="AfterBuild">
117+
</Target>
118+
-->
119+
</Project>
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// アセンブリに関する一般情報は、以下の属性セットによって
6+
// 制御されます。アセンブリに関連付けられている情報を変更するには、
7+
// これらの属性値を変更します。
8+
[assembly: AssemblyTitle("HttpAuthModule.SampleWeb")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("HttpAuthModule.SampleWeb")]
13+
[assembly: AssemblyCopyright("Copyright (C) 2013")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// ComVisible を false に設定すると、
18+
// COM コンポーネントがこのアセンブリ内のその型を認識できなくなります。
19+
// COM からこのアセンブリ内の型にアクセスする必要がある場合は、その型の ComVisible 属性を true に設定してください。
20+
[assembly: ComVisible(false)]
21+
22+
// このプロジェクトが COM に公開される場合、次の GUID がタイプ ライブラリの ID になります。
23+
[assembly: Guid("5625e349-d0fa-4f04-a5d2-966030ffaa3e")]
24+
25+
// アセンブリのバージョン情報は、以下の 4 つの値で構成されています:
26+
//
27+
// メジャー バージョン
28+
// マイナー バージョン
29+
// ビルド番号
30+
// リビジョン
31+
//
32+
// すべての値を指定するか、下のように "*" を使ってリビジョンおよびビルド番号を
33+
// 既定値にすることができます:
34+
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!-- web.config 変換の詳細については、http://go.microsoft.com/fwlink/?LinkId=125889 を参照してください。 -->
4+
5+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6+
<!--
7+
次の例では、"MyDB" という値を持つ "name" 属性が "Match" ロケーターで
8+
見つかった場合にのみ、"SetAttributes" 変換によって "connectionString" の
9+
値が "ReleaseSQLServer" を使用するように変更されます。
10+
11+
<connectionStrings>
12+
<add name="MyDB"
13+
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14+
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15+
</connectionStrings>
16+
-->
17+
<system.web>
18+
<!--
19+
20+
次の例では、web.config ファイルの <customErrors> セクション全体が
21+
"Replace" 変換によって置き換えられます。
22+
<system.web> ノードには customErrors セクションが 1 つしかないため、
23+
"xdt:Locator" 属性を使用する必要はありません。
24+
25+
<customErrors defaultRedirect="GenericError.htm"
26+
mode="RemoteOnly" xdt:Transform="Replace">
27+
<error statusCode="500" redirect="InternalError.htm"/>
28+
</customErrors>
29+
>
30+
-->
31+
</system.web>
32+
</configuration>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!-- web.config 変換の詳細については、http://go.microsoft.com/fwlink/?LinkId=125889 を参照してください。 -->
4+
5+
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
6+
<!--
7+
次の例では、"MyDB" という値を持つ "name" 属性が "Match" ロケーターで
8+
見つかった場合にのみ、"SetAttributes" 変換によって "connectionString" の
9+
値が "ReleaseSQLServer" を使用するように変更されます。
10+
11+
<connectionStrings>
12+
<add name="MyDB"
13+
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
14+
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
15+
</connectionStrings>
16+
-->
17+
<system.web>
18+
<compilation xdt:Transform="RemoveAttributes(debug)" />
19+
<!--
20+
21+
次の例では、web.config ファイルの <customErrors> セクション全体が
22+
"Replace" 変換によって置き換えられます。
23+
<system.web> ノードには customErrors セクションが 1 つしかないため、
24+
"xdt:Locator" 属性を使用する必要はありません。
25+
26+
<customErrors defaultRedirect="GenericError.htm"
27+
mode="RemoteOnly" xdt:Transform="Replace">
28+
<error statusCode="500" redirect="InternalError.htm"/>
29+
</customErrors>
30+
>
31+
-->
32+
</system.web>
33+
</configuration>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--
4+
ASP.NET アプリケーションの構成方法の詳細については、
5+
http://go.microsoft.com/fwlink/?LinkId=169433 を参照してください
6+
-->
7+
8+
<configuration>
9+
<system.web>
10+
<compilation debug="true" targetFramework="4.0" />
11+
</system.web>
12+
<appSettings>
13+
<!-- HttpAuth -->
14+
<add key="HttpAuth" value="Digest" />
15+
<add key="HttpAuth.Realm" value="SecureZone" />
16+
<add key="HttpAuth.Credentials" value="hoge:hogepass;foo:foopass;"/>
17+
<add key="HttpAuth.RestrictIPAddresses" value="127.0.0.1;182.249.0.0/16;182.248.112.128/26;::1" />
18+
</appSettings>
19+
<system.webServer>
20+
<modules>
21+
<add type="HttpAuthModule.HttpAuthModule" name="HttpAuthModule"/>
22+
</modules>
23+
</system.webServer>
24+
</configuration>

HttpAuthModule.sln

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpAuthModule", "HttpAuthModule\HttpAuthModule.csproj", "{1A44DED2-08B4-48DC-972F-A0CF24AD59A4}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpAuthModule.SampleWeb", "HttpAuthModule.SampleWeb\HttpAuthModule.SampleWeb.csproj", "{BC5ECB90-61AD-4711-9711-1BF7635415C3}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{1A44DED2-08B4-48DC-972F-A0CF24AD59A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{1A44DED2-08B4-48DC-972F-A0CF24AD59A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{1A44DED2-08B4-48DC-972F-A0CF24AD59A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{1A44DED2-08B4-48DC-972F-A0CF24AD59A4}.Release|Any CPU.Build.0 = Release|Any CPU
18+
{BC5ECB90-61AD-4711-9711-1BF7635415C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{BC5ECB90-61AD-4711-9711-1BF7635415C3}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{BC5ECB90-61AD-4711-9711-1BF7635415C3}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{BC5ECB90-61AD-4711-9711-1BF7635415C3}.Release|Any CPU.Build.0 = Release|Any CPU
22+
EndGlobalSection
23+
GlobalSection(SolutionProperties) = preSolution
24+
HideSolutionNode = FALSE
25+
EndGlobalSection
26+
EndGlobal

0 commit comments

Comments
 (0)