-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from mdsol/develop
Release of v4.0.0
- Loading branch information
Showing
47 changed files
with
1,531 additions
and
397 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
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
24 changes: 24 additions & 0 deletions
24
src/Medidata.MAuth.Core/Exceptions/InvalidVersionException.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,24 @@ | ||
using System; | ||
|
||
namespace Medidata.MAuth.Core.Exceptions | ||
{ | ||
/// <summary> | ||
/// The exception that is thrown when version no longer allowed is passed. | ||
/// </summary> | ||
public class InvalidVersionException : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidVersionException"/> class with the specified message. | ||
/// </summary> | ||
/// <param name="message">A message that describes the invalid version failure.</param> | ||
public InvalidVersionException(string message) : base(message) { } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidVersionException"/> class with the specified message | ||
/// and inner exception. | ||
/// </summary> | ||
/// <param name="message">A message that describes the invalid version failure.</param> | ||
/// <param name="innerException">An exception that is the cause of the current exception.</param> | ||
public InvalidVersionException(string message, Exception innerException) : base(message, innerException) { } | ||
} | ||
} |
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,18 @@ | ||
using System.Net.Http; | ||
using System.Threading.Tasks; | ||
|
||
namespace Medidata.MAuth.Core | ||
{ | ||
internal interface IMAuthCore | ||
{ | ||
Task<HttpRequestMessage> Sign(HttpRequestMessage request, MAuthSigningOptions options); | ||
|
||
bool Verify(byte[] signedData, byte[] signature, string publicKey); | ||
|
||
Task<byte[]> GetSignature(HttpRequestMessage request, AuthenticationInfo authInfo); | ||
|
||
string GetMAuthTokenRequestPath(); | ||
|
||
(string mAuthHeaderKey, string mAuthTimeHeaderKey) GetHeaderKeys(); | ||
} | ||
} |
Oops, something went wrong.