-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
OSOE-598: Add entra authentication for live metrics
- Loading branch information
Showing
6 changed files
with
134 additions
and
5 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
19 changes: 19 additions & 0 deletions
19
Lombiq.Hosting.Azure.ApplicationInsights/Models/EntraAuthenticationType.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,19 @@ | ||
namespace Lombiq.Hosting.Azure.ApplicationInsights.Models; | ||
|
||
public enum EntraAuthenticationType | ||
{ | ||
/// <summary> | ||
/// Don't use Entra authentication. | ||
/// </summary> | ||
None, | ||
|
||
/// <summary> | ||
/// Use Managed Identity. | ||
/// </summary> | ||
ManagedIdentity, | ||
|
||
/// <summary> | ||
/// Use a service principal. This requires setting up ServicePrincipalCredentials. | ||
/// </summary> | ||
ServicePrincipal, | ||
} |
19 changes: 19 additions & 0 deletions
19
Lombiq.Hosting.Azure.ApplicationInsights/ServicePrincipalCredentials.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,19 @@ | ||
namespace Lombiq.Hosting.Azure.ApplicationInsights; | ||
|
||
public class ServicePrincipalCredentials | ||
{ | ||
/// <summary> | ||
/// Gets or sets the (directory) tenant ID of the Microsoft Entra application used to secure the control channel. | ||
/// </summary> | ||
public string TenantId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the application (client) ID of the Microsoft Entra application used to secure the control channel. | ||
/// </summary> | ||
public string ClientId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the client secret of the Microsoft Entra application used to secure the control channel. | ||
/// </summary> | ||
public string ClientSecret { 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