WorkOS.net
0.6.0
See the version list below for details.
dotnet add package WorkOS.net --version 0.6.0
NuGet\Install-Package WorkOS.net -Version 0.6.0
<PackageReference Include="WorkOS.net" Version="0.6.0" />
paket add WorkOS.net --version 0.6.0
#r "nuget: WorkOS.net, 0.6.0"
// Install WorkOS.net as a Cake Addin #addin nuget:?package=WorkOS.net&version=0.6.0 // Install WorkOS.net as a Cake Tool #tool nuget:?package=WorkOS.net&version=0.6.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.5.0 | 1,290 | 10/21/2024 |
2.4.0 | 2,867 | 9/23/2024 |
2.3.0 | 4,014 | 7/18/2024 |
2.2.0 | 1,156 | 6/26/2024 |
2.1.0 | 4,479 | 5/8/2024 |
2.0.0 | 6,989 | 12/14/2023 |
1.17.4 | 15,447 | 5/25/2023 |
1.17.3 | 1,198 | 3/29/2023 |
1.17.2 | 240 | 3/27/2023 |
1.17.0 | 1,765 | 3/7/2023 |
1.16.0 | 9,483 | 12/6/2022 |
1.15.2 | 955 | 12/5/2022 |
1.15.1 | 324 | 12/2/2022 |
1.15.0 | 4,833 | 11/9/2022 |
1.14.0 | 432 | 10/18/2022 |
1.13.0 | 1,493 | 10/12/2022 |
1.12.0 | 450 | 9/16/2022 |
1.11.0 | 417 | 9/6/2022 |
1.10.0 | 1,871 | 7/14/2022 |
1.9.0 | 440 | 7/14/2022 |
1.8.0 | 13,154 | 3/30/2022 |
1.8.0-alpha.3 | 131 | 3/15/2022 |
1.8.0-alpha.2 | 125 | 2/22/2022 |
1.8.0-alpha.1 | 121 | 2/22/2022 |
1.7.0 | 838 | 12/16/2021 |
1.6.0 | 1,043 | 11/29/2021 |
1.5.0 | 10,233 | 9/23/2021 |
1.4.0 | 549 | 8/16/2021 |
1.3.0 | 349 | 8/9/2021 |
1.2.0 | 437 | 6/15/2021 |
1.1.0 | 573 | 5/24/2021 |
1.0.0 | 333 | 5/12/2021 |
0.9.6 | 401 | 5/6/2021 |
0.9.5 | 319 | 5/4/2021 |
0.9.4 | 343 | 4/8/2021 |
0.9.3 | 379 | 3/4/2021 |
0.9.2 | 343 | 2/22/2021 |
0.9.1 | 365 | 2/2/2021 |
0.9.0 | 414 | 1/7/2021 |
0.8.2 | 416 | 11/30/2020 |
0.8.1 | 435 | 10/22/2020 |
0.8.0 | 478 | 10/14/2020 |
0.7.0 | 425 | 9/25/2020 |
0.6.0 | 474 | 9/24/2020 |
0.3.0 | 491 | 9/23/2020 |
0.2.0 | 556 | 9/22/2020 |
0.1.0 | 459 | 9/11/2020 |