SecTester.Core
0.4.0
See the version list below for details.
dotnet add package SecTester.Core --version 0.4.0
NuGet\Install-Package SecTester.Core -Version 0.4.0
<PackageReference Include="SecTester.Core" Version="0.4.0" />
<PackageVersion Include="SecTester.Core" Version="0.4.0" />
<PackageReference Include="SecTester.Core" />
paket add SecTester.Core --version 0.4.0
#r "nuget: SecTester.Core, 0.4.0"
#:package SecTester.Core@0.4.0
#addin nuget:?package=SecTester.Core&version=0.4.0
#tool nuget:?package=SecTester.Core&version=0.4.0
SecTester.Core
The core package can be used to obtain a config including credentials from different sources, and provide a simplified abstraction to handle events and commands.
Setup
$ dotnet add package SecTester.Core
Usage
Configuration
First, you need to generate a new instance of Configuration.
var config = new Configuration(
hostname: "app.neuralegion.com",
credentials: new Credentials("your API key"));
You can also register the configuration using the dependency injection framework providing information that will be used to construct other clients.
public void ConfigureServices(IServiceCollection services)
{
services.AddSecTesterConfig("app.neuralegion.com");
// or
services.AddSecTesterConfig(config);
}
Options
Configuration can be customized using the following options:
public interface ConfigurationOptions {
string hostname
{
get;
}
Credentials? credentials
{
get;
}
List<CredentialProvider>? credentialProviders
{
get;
}
}
The default configuration is as follows:
{
credentialProviders = new List<CredentialProvider> { new EnvCredentialProvider() }
}
hostname
- type:
string
Set the application name (domain name), that is used to establish connection with.
var config = new Configuration(hostname: "app.neuralegion.com");
credentials
- type:
Credentials
Set credentials to access the application.
var config = new Configuration(
// ...
credentials: new Credential("your API key"));
More info about setting up an API key
credentialProviders
- type:
CredentialProvider[]
Allows you to provide credentials and load it in runtime. The configuration will invoke one provider at a time and only
continue to the next if no credentials have been located. For example, if the process finds values defined via
the BRIGHT_TOKEN environment variables, the file at .sectesterrc will not be read.
EnvCredentialProvider
Use this provider to read credentials from the following environment variable: BRIGHT_TOKEN
If the BRIGHT_TOKEN environment variable is not set or contains a falsy value, it will return undefined.
var credentialsProvider = new EnvCredentialProvider();
var config = new Configuration(
// ...
credentialProviders: new List<CredentialProvider> { credentialsProvider });
License
Copyright © 2022 Bright Security.
This project is licensed under the MIT License - see the LICENSE file for details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
NuGet packages (3)
Showing the top 3 NuGet packages that depend on SecTester.Core:
| Package | Downloads |
|---|---|
|
SecTester.Bus
This SDK is designed to provide all the basic tools and functions that will allow you to easily integrate the Bright security testing engine into your own project. |
|
|
SecTester.Scan
This SDK is designed to provide all the basic tools and functions that will allow you to easily integrate the Bright security testing engine into your own project. |
|
|
SecTester.Repeater
This SDK is designed to provide all the basic tools and functions that will allow you to easily integrate the Bright security testing engine into your own project. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.44.0 | 541 | 3/5/2025 |
| 0.43.0 | 381 | 2/19/2025 |
| 0.41.4 | 492 | 6/8/2024 |
| 0.41.3 | 587 | 10/4/2023 |
| 0.41.2 | 536 | 10/4/2023 |
| 0.41.1 | 528 | 10/4/2023 |
| 0.41.0 | 548 | 10/4/2023 |
| 0.40.0 | 596 | 8/3/2023 |
| 0.39.1 | 629 | 8/1/2023 |
| 0.39.0 | 585 | 7/31/2023 |
| 0.38.0 | 606 | 7/28/2023 |
| 0.37.0 | 607 | 7/20/2023 |
| 0.36.0 | 672 | 6/5/2023 |
| 0.35.1 | 698 | 5/2/2023 |
| 0.35.0 | 825 | 4/11/2023 |
| 0.34.0 | 1,185 | 2/8/2023 |
| 0.33.7 | 1,429 | 12/20/2022 |
| 0.33.6 | 1,418 | 12/16/2022 |
| 0.33.5 | 1,392 | 12/16/2022 |
| 0.4.0 | 535 | 11/7/2022 |