diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-03 22:35:27 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-06-03 22:35:27 -0700 |
commit | 313e1bb2379fea3f78f355486b99cb584fed6f7a (patch) | |
tree | 8791a78884f2456793e9eea86024b8987159f80d /src | |
parent | 9c5b68723f6c82054133b50e7e1024183b9fbf9c (diff) | |
download | DotNetOpenAuth-313e1bb2379fea3f78f355486b99cb584fed6f7a.zip DotNetOpenAuth-313e1bb2379fea3f78f355486b99cb584fed6f7a.tar.gz DotNetOpenAuth-313e1bb2379fea3f78f355486b99cb584fed6f7a.tar.bz2 |
Fixed unhandled exception due to AuthenticationResponseSnapshot constructor calling Provider member of classes that may not support that property.
Diffstat (limited to 'src')
5 files changed, 23 insertions, 3 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/AuthenticationResponseSnapshot.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/AuthenticationResponseSnapshot.cs index 5bf60d6..3fd7d20 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/AuthenticationResponseSnapshot.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/AuthenticationResponseSnapshot.cs @@ -99,6 +99,10 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// OpenID discovery documents found at the <see cref="ClaimedIdentifier"/> /// location. /// </summary> + /// <value> + /// The Provider endpoint that issued the positive assertion; + /// or <c>null</c> if information about the Provider is unavailable. + /// </value> public IProviderEndpoint Provider { get; private set; } /// <summary> diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/FailedAuthenticationResponse.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/FailedAuthenticationResponse.cs index b01761a..d94af14 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/FailedAuthenticationResponse.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/FailedAuthenticationResponse.cs @@ -101,8 +101,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// OpenID discovery documents found at the <see cref="ClaimedIdentifier"/> /// location. /// </summary> + /// <value> + /// The Provider endpoint that issued the positive assertion; + /// or <c>null</c> if information about the Provider is unavailable. + /// </value> public IProviderEndpoint Provider { - get { throw new NotSupportedException(); } + get { return null; } } /// <summary> diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/IAuthenticationResponse.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/IAuthenticationResponse.cs index 0bb05e1..cc94de0 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/IAuthenticationResponse.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/IAuthenticationResponse.cs @@ -81,8 +81,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// <summary> /// Gets information about the OpenId Provider, as advertised by the /// OpenID discovery documents found at the <see cref="ClaimedIdentifier"/> - /// location. + /// location, if available. /// </summary> + /// <value> + /// The Provider endpoint that issued the positive assertion; + /// or <c>null</c> if information about the Provider is unavailable. + /// </value> IProviderEndpoint Provider { get; } /// <summary> diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/NegativeAuthenticationResponse.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/NegativeAuthenticationResponse.cs index 2a934e3..e66ac28 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/NegativeAuthenticationResponse.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/NegativeAuthenticationResponse.cs @@ -100,8 +100,12 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// OpenID discovery documents found at the <see cref="ClaimedIdentifier"/> /// location. /// </summary> + /// <value> + /// The Provider endpoint that issued the positive assertion; + /// or <c>null</c> if information about the Provider is unavailable. + /// </value> public IProviderEndpoint Provider { - get { throw new NotSupportedException(); } + get { return null; } } /// <summary> diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs index 6a5e971..13eb1a2 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/PositiveAnonymousResponse.cs @@ -109,6 +109,10 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { /// OpenID discovery documents found at the <see cref="ClaimedIdentifier"/> /// location. /// </summary> + /// <value> + /// The Provider endpoint that issued the positive assertion; + /// or <c>null</c> if information about the Provider is unavailable. + /// </value> public IProviderEndpoint Provider { get { return this.provider; } } |