Skip to content

v1.2.0

Compare
Choose a tag to compare
@devpro devpro released this 23 Mar 19:53
· 2 commits to main since this release
3aa541d

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"
+   }
+ },
}
  • NuGet packages updates

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