Skip to content

Commit 39ab6c7

Browse files
committed
fix digest nonce creation
1 parent 9c85be2 commit 39ab6c7

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

HttpAuthModule.SampleWeb/HttpAuthModule.SampleWeb.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
</ItemGroup>
5959
<ItemGroup>
6060
<Content Include="Default.aspx" />
61-
<Content Include="Web.config" />
61+
<Content Include="Web.config">
62+
<SubType>Designer</SubType>
63+
</Content>
6264
</ItemGroup>
6365
<ItemGroup>
6466
<Compile Include="Default.aspx.cs">

HttpAuthModule/HttpAuthModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public override bool Execute(HttpApplication app)
141141
public class DigestAuthStragegy : CredentialAuthStrategy
142142
{
143143
private static readonly TimeSpan _nonceValidDuration = new TimeSpan(2, 0, 0);
144-
private static readonly string _nonceSalt = new Guid().ToString() + new Guid().ToString();
144+
private static readonly string _nonceSalt = Guid.NewGuid().ToString() + Guid.NewGuid().ToString();
145145

146146
private Dictionary<string, string> _validTokens;
147147

HttpAuthModule/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// すべての値を指定するか、下のように '*' を使ってビルドおよびリビジョン番号を
3333
// 既定値にすることができます:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("0.7.0.0")]
36-
[assembly: AssemblyFileVersion("0.7.0.0")]
35+
[assembly: AssemblyVersion("0.7.0.1")]
36+
[assembly: AssemblyFileVersion("0.7.0.1")]

0 commit comments

Comments
 (0)