diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-22 14:22:14 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-03-22 14:22:14 -0700 |
commit | b44eff9447fc1335c077b47d55f2e5db1439fcfc (patch) | |
tree | 0aaf3284ec1db64be5acd8aab4e932c7bec5be27 /src | |
parent | 358bef9650615ebe5235b2529c0265b96b5e32bf (diff) | |
download | DotNetOpenAuth-b44eff9447fc1335c077b47d55f2e5db1439fcfc.zip DotNetOpenAuth-b44eff9447fc1335c077b47d55f2e5db1439fcfc.tar.gz DotNetOpenAuth-b44eff9447fc1335c077b47d55f2e5db1439fcfc.tar.bz2 |
OpenIdRelyingParty no longer filters out OpenID 1.1 endpoints when in stateless mode if the RP has already opted out of replay protection for downlevel OPs.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs index dc8e50f..a416f3a 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdRelyingParty.cs @@ -128,11 +128,11 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { // Without a nonce store, we must rely on the Provider to protect against // replay attacks. But only 2.0+ Providers can be expected to provide // replay protection. - if (nonceStore == null) { - if (this.SecuritySettings.MinimumRequiredOpenIdVersion < ProtocolVersion.V20) { - Logger.OpenId.Warn("Raising minimum OpenID version requirement for Providers to 2.0 to protect this stateless RP from replay attacks."); - this.SecuritySettings.MinimumRequiredOpenIdVersion = ProtocolVersion.V20; - } + if (nonceStore == null && + this.SecuritySettings.ProtectDownlevelReplayAttacks && + this.SecuritySettings.MinimumRequiredOpenIdVersion < ProtocolVersion.V20) { + Logger.OpenId.Warn("Raising minimum OpenID version requirement for Providers to 2.0 to protect this stateless RP from replay attacks."); + this.SecuritySettings.MinimumRequiredOpenIdVersion = ProtocolVersion.V20; } this.channel = new OpenIdChannel(associationStore, nonceStore, this.SecuritySettings); |