WorkOS.net
0.9.4
See the version list below for details.
dotnet add package WorkOS.net --version 0.9.4
NuGet\Install-Package WorkOS.net -Version 0.9.4
<PackageReference Include="WorkOS.net" Version="0.9.4" />
paket add WorkOS.net --version 0.9.4
#r "nuget: WorkOS.net, 0.9.4"
// Install WorkOS.net as a Cake Addin #addin nuget:?package=WorkOS.net&version=0.9.4 // Install WorkOS.net as a Cake Tool #tool nuget:?package=WorkOS.net&version=0.9.4
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.5.0 | 1,861 | 10/21/2024 |
2.4.0 | 2,972 | 9/23/2024 |
2.3.0 | 4,183 | 7/18/2024 |
2.2.0 | 1,202 | 6/26/2024 |
2.1.0 | 4,560 | 5/8/2024 |
2.0.0 | 7,049 | 12/14/2023 |
1.17.4 | 15,624 | 5/25/2023 |
1.17.3 | 1,199 | 3/29/2023 |
1.17.2 | 241 | 3/27/2023 |
1.17.0 | 1,766 | 3/7/2023 |
1.16.0 | 9,484 | 12/6/2022 |
1.15.2 | 960 | 12/5/2022 |
1.15.1 | 325 | 12/2/2022 |
1.15.0 | 4,834 | 11/9/2022 |
1.14.0 | 433 | 10/18/2022 |
1.13.0 | 1,502 | 10/12/2022 |
1.12.0 | 451 | 9/16/2022 |
1.11.0 | 420 | 9/6/2022 |
1.10.0 | 1,872 | 7/14/2022 |
1.9.0 | 441 | 7/14/2022 |
1.8.0 | 13,208 | 3/30/2022 |
1.8.0-alpha.3 | 134 | 3/15/2022 |
1.8.0-alpha.2 | 126 | 2/22/2022 |
1.8.0-alpha.1 | 122 | 2/22/2022 |
1.7.0 | 839 | 12/16/2021 |
1.6.0 | 1,044 | 11/29/2021 |
1.5.0 | 10,250 | 9/23/2021 |
1.4.0 | 550 | 8/16/2021 |
1.3.0 | 350 | 8/9/2021 |
1.2.0 | 438 | 6/15/2021 |
1.1.0 | 574 | 5/24/2021 |
1.0.0 | 334 | 5/12/2021 |
0.9.6 | 402 | 5/6/2021 |
0.9.5 | 320 | 5/4/2021 |
0.9.4 | 344 | 4/8/2021 |
0.9.3 | 380 | 3/4/2021 |
0.9.2 | 346 | 2/22/2021 |
0.9.1 | 366 | 2/2/2021 |
0.9.0 | 415 | 1/7/2021 |
0.8.2 | 417 | 11/30/2020 |
0.8.1 | 436 | 10/22/2020 |
0.8.0 | 479 | 10/14/2020 |
0.7.0 | 426 | 9/25/2020 |
0.6.0 | 475 | 9/24/2020 |
0.3.0 | 492 | 9/23/2020 |
0.2.0 | 557 | 9/22/2020 |
0.1.0 | 460 | 9/11/2020 |