-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a new CredentialSource SignedAssertionFromVault.
Computing the signed assertion for client credentials require ClientId and authority, hence adding optional parameters CredentialsSourceLoaderParameters, which are now passed to the credential loader methods. Clean-up
- Loading branch information
Showing
7 changed files
with
61 additions
and
11 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
35 changes: 35 additions & 0 deletions
35
src/Microsoft.Identity.Abstractions/ApplicationOptions/CredentialSourceLoaderParameters.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,35 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Identity.Abstractions | ||
{ | ||
/// <summary> | ||
/// Parameters that credential loaders can use. This is for example the | ||
/// case for signed assertion providers. | ||
/// </summary> | ||
public class CredentialSourceLoaderParameters | ||
{ | ||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
/// <param name="clientId">Application ID of the confidential client application that | ||
/// wants to use these credentials as client credentials</param> | ||
/// <param name="authority">ID of the tenant in which the application is running.</param> | ||
public CredentialSourceLoaderParameters(string clientId, string authority) | ||
{ | ||
ClientId = clientId; | ||
Authority = authority; | ||
} | ||
|
||
/// <summary> | ||
/// Application ID of the confidential client application that | ||
/// wants to use these credentials as client credentials. | ||
/// </summary> | ||
public string ClientId { get; set; } | ||
|
||
/// <summary> | ||
/// Authority (Cloud instance and tenant). | ||
/// </summary> | ||
public string Authority { get; set; } | ||
} | ||
} |
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