This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduced necessity for OpenIdException handling outside of the library.
The AuthenticationStatus.Failed enum value is now used to represent failed attempts that previously threw an OpenIdException. The OpenIdTextBox control (and derivative OpenIdLogin) has seen some breaking changes as the result of this change, as noted below. BREAKING CHANGES: Old behavior: * exceptions fired the OnError event. * SetupRequired fired the OnFailed event. New behavior: * exceptions fire the OnFailed event (new signature, causes compile error) * SetupRequired fires the new OnSetupRequired event. * OnError event no longer exists (causes compile error)
- Loading branch information
Showing
9 changed files
with
110 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/DotNetOpenId/RelyingParty/FailedAuthenticationResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace DotNetOpenId.RelyingParty { | ||
class FailedAuthenticationResponse : IAuthenticationResponse { | ||
public FailedAuthenticationResponse(Exception exception) { | ||
Exception = exception; | ||
} | ||
|
||
#region IAuthenticationResponse Members | ||
|
||
public IDictionary<string, string> GetExtensionArguments(string extensionTypeUri) { | ||
return new Dictionary<string, string>(); | ||
} | ||
|
||
public Identifier ClaimedIdentifier { | ||
get { return null; } | ||
} | ||
|
||
public AuthenticationStatus Status { | ||
get { return AuthenticationStatus.Failed; } | ||
} | ||
|
||
public Exception Exception { get; private set; } | ||
|
||
#endregion | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters