diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2011-08-28 09:44:51 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2011-08-28 09:44:51 -0700 |
commit | 587e9aec7be42c550c2c491eaabf7f7916faabfd (patch) | |
tree | 4e67f72224c7d5515f4f322357789b2704babc63 /src/DotNetOpenAuth.OpenId.Provider | |
parent | 53d21bf1060321b63fcb99233b09e107dd2dd1d5 (diff) | |
download | DotNetOpenAuth-587e9aec7be42c550c2c491eaabf7f7916faabfd.zip DotNetOpenAuth-587e9aec7be42c550c2c491eaabf7f7916faabfd.tar.gz DotNetOpenAuth-587e9aec7be42c550c2c491eaabf7f7916faabfd.tar.bz2 |
Fixed missing check_auth message factory at OP.
Fixes a few more unit tests.
Diffstat (limited to 'src/DotNetOpenAuth.OpenId.Provider')
-rw-r--r-- | src/DotNetOpenAuth.OpenId.Provider/OpenId/ChannelElements/OpenIdProviderMessageFactory.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth.OpenId.Provider/OpenId/ChannelElements/OpenIdProviderMessageFactory.cs b/src/DotNetOpenAuth.OpenId.Provider/OpenId/ChannelElements/OpenIdProviderMessageFactory.cs index c633cbf..3fab06b 100644 --- a/src/DotNetOpenAuth.OpenId.Provider/OpenId/ChannelElements/OpenIdProviderMessageFactory.cs +++ b/src/DotNetOpenAuth.OpenId.Provider/OpenId/ChannelElements/OpenIdProviderMessageFactory.cs @@ -54,6 +54,8 @@ namespace DotNetOpenAuth.OpenId.ChannelElements { ErrorUtilities.VerifyProtocol(!fields.ContainsKey(protocol.openid.claimed_id), OpenIdStrings.IdentityAndClaimedIdentifierMustBeBothPresentOrAbsent); message = new SignedResponseRequest(protocol.Version, recipient.Location, authMode); } + } else if (string.Equals(mode, protocol.Args.Mode.check_authentication)) { + message = new CheckAuthenticationRequest(protocol.Version, recipient.Location); } else { ErrorUtilities.ThrowProtocol(MessagingStrings.UnexpectedMessagePartValue, protocol.openid.mode, mode); } |