Version 1.2.0
Changelog since v1.1.0
Feature requests
- Authenticate with Azure AD (#9)
# appsettings.json
{
"Application": {
+ "IsSecuredByAzureAd": true,
},
+ "AzureAd": {
+ "Instance": "https://login.microsoftonline.com/",
+ "CallbackPath": "/signin-oidc",
+ "SignedOutCallbackPath": "/signout-callback-oidc",
+ "Domain": "***",
+ "TenantId": "***",
+ "ClientId": "***",
+ "ClientSecret": "***"
+ },
}
- Observability with OpenTelemetry (#15)
# appsettings.json
{
"Application": {
+ "IsOpenTelemetryEnabled": true,
},
+ "OpenTelemetry": {
+ "Service": "SampleServiceNowRestClient",
+ "Metrics": {
+ "Meter": "SampleServiceNowRestClientMetrics"
+ },
+ "Tracing": {
+ "Source": "SampleServiceNowRestClientTracing"
+ },
+ "OtlpExporter": {
+ "Endpoint": "http://localhost:4317"
+ }
+ },
}
Breaking changes
- New mandatory fields in
appsettings.json
to configure Swagger
{
+ "OpenApi": {
+ "Title": "ServiceNow Client Web API sample",
+ "Version": "v1.0"
+ }
}
- Update in
Program.cs
file
var builder = WebApplication.CreateBuilder(args);
-builder.Services.AddDefaultServices(builder.Configuration, new GeneratedServiceNowRestClientMappingProfile());
+builder.Services.AddDefaultServices(builder.Configuration, builder.Logging, new GeneratedServiceNowRestClientMappingProfile());
builder.Services.AddServiceNowRestClientGeneratedRepositories();
builder.Services.AddSqlServerClientClientGeneratedRepositories();
var app = builder.Build();
app.AddDefaultMiddlewares(builder.Configuration);
app.Run();
Update
dotnet add package RabbidsIncubator.ServiceNowClient.Application --version 1.2.0
dotnet add package RabbidsIncubator.ServiceNowClient.Application.Generators --version 1.2.0