-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/hibp apiv3 authentication (#83)
* see #80 Switch to API Version 3 for HaveIBeenPwned Username check. User needs to provide an API key, this is solved by searching for a password entry with the title "hibp-apikey" in the current database. This API key can be obtained at https://haveibeenpwned.com/API/Key. * see #80 Alpha Version so others with an api key can test the plugin without needing to build it them selves
- Loading branch information
1 parent
54b7b6c
commit 101e287
Showing
8 changed files
with
192 additions
and
34 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
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
HaveIBeenPwned/BreachCheckers/HaveIBeenPwnedUsername/ApiKeyException.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,12 @@ | ||
using System; | ||
|
||
namespace HaveIBeenPwned.BreachCheckers.HaveIBeenPwnedUsername | ||
{ | ||
public class ApiKeyException :Exception | ||
{ | ||
public ApiKeyException(string message) | ||
:base(message) | ||
{ | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
HaveIBeenPwned/BreachCheckers/HaveIBeenPwnedUsername/HaveIBeenPwnedAbortException.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,15 @@ | ||
using System; | ||
|
||
namespace HaveIBeenPwned.BreachCheckers.HaveIBeenPwnedUsername | ||
{ | ||
/// <summary> | ||
/// Exception to signal known Errors, that should abort the current checking mechanism | ||
/// </summary> | ||
public class HaveIBeenPwnedAbortException : Exception | ||
{ | ||
public HaveIBeenPwnedAbortException(string message) | ||
:base(message) | ||
{ | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
: | ||
HaveIBeenPwned checker:1.3.1 | ||
HaveIBeenPwned checker:1.3.2-alpha.1+hibpv3 | ||
: |
Binary file not shown.