Skip to content

Releases: devpro/servicenow-dotnet-client

v1.2.1

19 May 14:06
c69bbeb
Compare
Choose a tag to compare

Version 1.2.1

Changelog since v1.2.1

Feature requests

  • Improve Swagger OAuth2 authentication
# appsettings.json
{
+ "Swagger": {
+   "SecurityDefinitionName": "oauth2"
+ }
}
  • Authorize per role
# entities.yml
entities:
  - name: Location
    resourceName: locations
+   isAuthorizationRequired: true
+   authorizationRoles: <azuread_application_role>
  • NuGet packages updates

    • FluentAssertions: 6.6.0

Breaking changes

None.

Update

dotnet add package RabbidsIncubator.ServiceNowClient.Application --version 1.2.1
dotnet add package RabbidsIncubator.ServiceNowClient.Application.Generators --version 1.2.1

v1.2.0

23 Mar 19:53
3aa541d
Compare
Choose a tag to compare

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

v1.1.0

04 Mar 15:26
be6297a
Compare
Choose a tag to compare

Version 1.1.0

Changelog since v1.0.5

Feature requests

  • Ability to get information from a SQL Server database (#10)

  • Fine tune application configuration

# appsettings.json
{
  "AllowedHosts": "*",
+ "Application": {
+   "IsSwaggerEnabled": false,
+   "IsHttpsEnforced": true
+ },
}

Breaking changes

entities.yml file

entities:
  - name:
    queries:
      findAll:
-       table:
+       serviceNowRestApiTable:
    fields:
      - name:
-       serviceNowFieldName:
+       mapFrom:

Program.cs file

  var app = builder.Build();
- app.AddDefaultMiddlewares();
+ app.AddDefaultMiddlewares(builder.Configuration);

  app.Run();

Update

dotnet add package RabbidsIncubator.ServiceNowClient.Application --version 1.1.0
dotnet add package RabbidsIncubator.ServiceNowClient.Application.Generators --version 1.1.0