WorkOS.net
0.2.0
See the version list below for details.
dotnet add package WorkOS.net --version 0.2.0
NuGet\Install-Package WorkOS.net -Version 0.2.0
<PackageReference Include="WorkOS.net" Version="0.2.0" />
paket add WorkOS.net --version 0.2.0
#r "nuget: WorkOS.net, 0.2.0"
// Install WorkOS.net as a Cake Addin #addin nuget:?package=WorkOS.net&version=0.2.0 // Install WorkOS.net as a Cake Tool #tool nuget:?package=WorkOS.net&version=0.2.0
workos-dotnet
The official WorkOS .NET SDK supporting .NET Standard 2.0+ and .NET Framework 4.6.1+.
Documentation
Complete documentation for the library can be found here.
Installation
There are several options to install the WorkOS .NET SDK.
Via the NuGet Package Manager
nuget install WorkOS.net
Via the .NET Core Command Line Tools
dotnet add package WorkOS.net
Via Visual Studio IDE
Install-Package WorkOS.net
Configuration
To use the WorkOS client, you must provide an API key from the WorkOS dashboard.
WorkOS.SetApiKey("sk_key123");
You can also optionally provide a custom HttpClient.
var client = new WorkOSClient(
new WorkOSOptions
{
ApiKey = "sk_key123",
HttpClient = ...,
});
WorkOS.WorkOSClient = client;
Example Usage
The example below demonstrates exchanging an authorization code for a WorkOS Profile.
var ssoService = new SSOService();
var options = new GetProfileOptions
{
ClientId = "project_123",
Code = "code_123",
};
var response = ssoService.GetProfile(options);
When applicable, calls can be made asynchronously and return a Task
.
var response = await ssoService.GetProfileAsync(options);
Development and Testing
Run all tests with the following command:
dotnet test test/WorkOSTests/WorkOSTests.csproj
Run tests for a specific framework with the following command:
dotnet test test/WorkOSTests/WorkOSTests.csproj -f netcoreapp3.1
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. |
.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 is compatible. 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. |
-
.NETFramework 4.6.1
- Microsoft.Bcl.AsyncInterfaces (>= 1.1.0)
- Newtonsoft.Json (>= 12.0.3)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
-
.NETStandard 2.0
- Microsoft.Bcl.AsyncInterfaces (>= 1.1.0)
- Newtonsoft.Json (>= 12.0.3)
- System.Configuration.ConfigurationManager (>= 4.5.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.3.0 | 1,398 | 7/18/2024 |
2.2.0 | 920 | 6/26/2024 |
2.1.0 | 3,410 | 5/8/2024 |
2.0.0 | 5,956 | 12/14/2023 |
1.17.4 | 12,747 | 5/25/2023 |
1.17.3 | 1,158 | 3/29/2023 |
1.17.2 | 218 | 3/27/2023 |
1.17.0 | 1,728 | 3/7/2023 |
1.16.0 | 9,460 | 12/6/2022 |
1.15.2 | 879 | 12/5/2022 |
1.15.1 | 305 | 12/2/2022 |
1.15.0 | 4,502 | 11/9/2022 |
1.14.0 | 413 | 10/18/2022 |
1.13.0 | 1,365 | 10/12/2022 |
1.12.0 | 428 | 9/16/2022 |
1.11.0 | 395 | 9/6/2022 |
1.10.0 | 1,845 | 7/14/2022 |
1.9.0 | 418 | 7/14/2022 |
1.8.0 | 12,419 | 3/30/2022 |
1.8.0-alpha.3 | 125 | 3/15/2022 |
1.8.0-alpha.2 | 117 | 2/22/2022 |
1.8.0-alpha.1 | 115 | 2/22/2022 |
1.7.0 | 798 | 12/16/2021 |
1.6.0 | 1,009 | 11/29/2021 |
1.5.0 | 9,993 | 9/23/2021 |
1.4.0 | 531 | 8/16/2021 |
1.3.0 | 327 | 8/9/2021 |
1.2.0 | 414 | 6/15/2021 |
1.1.0 | 554 | 5/24/2021 |
1.0.0 | 313 | 5/12/2021 |
0.9.6 | 380 | 5/6/2021 |
0.9.5 | 291 | 5/4/2021 |
0.9.4 | 324 | 4/8/2021 |
0.9.3 | 355 | 3/4/2021 |
0.9.2 | 321 | 2/22/2021 |
0.9.1 | 345 | 2/2/2021 |
0.9.0 | 395 | 1/7/2021 |
0.8.2 | 386 | 11/30/2020 |
0.8.1 | 413 | 10/22/2020 |
0.8.0 | 442 | 10/14/2020 |
0.7.0 | 402 | 9/25/2020 |
0.6.0 | 434 | 9/24/2020 |
0.3.0 | 469 | 9/23/2020 |
0.2.0 | 535 | 9/22/2020 |
0.1.0 | 433 | 9/11/2020 |