-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split id web into smaller nuget packages (tokencache & certificate) (#…
…1437) * separate token cache out, initial commit * fix component governance issue w/microsoft.extensions 3.1.18 * Adding net standard 2.0 target * support net standard 2.0 and remove 462 472 * few more updates * move certificates to nuget package * fix test * add 462 472 target frameworks * few more updates * governance fix * remove more dependencies * fix governance * move claimsPrincipalExtensions over * merge conflicts 2 * move netstandard to 2.0 * fix nuget description & references * remove internalsVisisibleTo. implement George's FB * update build w/new names * fix build * fix renaming issue * feedback from karel * use 2.1 for net standard 2.0 * re-add data protection for distributed cache * move down to 3.0.0 for netcoreapp3.1 Co-authored-by: Jean-Marc Prieur <jmprieur@microsoft.com>
- Loading branch information
Showing
40 changed files
with
1,551 additions
and
3,528 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
15 changes: 15 additions & 0 deletions
15
src/Microsoft.Identity.Web.Certificate/CertificateConstants.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 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Identity.Web | ||
{ | ||
/// <summary> | ||
/// General constants for Microsoft Identity Certificates. | ||
/// </summary> | ||
internal static class CertificateConstants | ||
{ | ||
// Certificates | ||
internal const string MediaTypePksc12 = "application/x-pkcs12"; | ||
internal const string PersonalUserCertificateStorePath = "CurrentUser/My"; | ||
} | ||
} |
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
33 changes: 33 additions & 0 deletions
33
src/Microsoft.Identity.Web.Certificate/CertificateErrorMessage.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,33 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Identity.Web | ||
{ | ||
/// <summary> | ||
/// Constants related to the error messages. | ||
/// </summary> | ||
internal static class CertificateErrorMessage | ||
{ | ||
// Configuration IDW10100 = "IDW10100:" | ||
public const string ClientSecretAndCertficateNull = | ||
"IDW10104: Both client secret and client certificate cannot be null or whitespace, " + | ||
"and only ONE must be included in the configuration of the web app when calling a web API. " + | ||
"For instance, in the appsettings.json file. "; | ||
public const string BothClientSecretAndCertificateProvided = "IDW10105: Both client secret and client certificate, " + | ||
"cannot be included in the configuration of the web app when calling a web API. "; | ||
public const string ClientCertificatesHaveExpiredOrCannotBeLoaded = "IDW10109: All client certificates passed to the configuration have expired or can't be loaded. "; | ||
|
||
// Encoding IDW10600 = "IDW10600:" | ||
public const string InvalidBase64UrlString = "IDW10601: Invalid Base64URL string. "; | ||
|
||
// Certificates IDW10700 = "IDW10700:" | ||
public const string OnlyPkcs12IsSupported = "IDW10701: Only PKCS #12 content type is supported. Found Content-Type: {0}. "; | ||
public const string IncorrectNumberOfUriSegments = "IDW10702: Number of URI segments is incorrect: {0}, URI: {1}. "; | ||
public const string InvalidCertificateStorePath = "IDW10703: Certificate store path must be of the form 'StoreLocation/StoreName'. " + | ||
"StoreLocation must be one of 'CurrentUser', 'CurrentMachine'. " + | ||
"StoreName must be empty or one of '{0}'. "; | ||
|
||
// Obsolete messages IDW10800 = "IDW10800:" | ||
public const string FromStoreWithThumprintIsObsolete = "IDW10803: Use FromStoreWithThumbprint instead, due to spelling error. "; | ||
} | ||
} |
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.