iCloud.Dav.Auth
3.1.2
See the version list below for details.
dotnet add package iCloud.Dav.Auth --version 3.1.2
NuGet\Install-Package iCloud.Dav.Auth -Version 3.1.2
<PackageReference Include="iCloud.Dav.Auth" Version="3.1.2" />
paket add iCloud.Dav.Auth --version 3.1.2
#r "nuget: iCloud.Dav.Auth, 3.1.2"
// Install iCloud.Dav.Auth as a Cake Addin #addin nuget:?package=iCloud.Dav.Auth&version=3.1.2 // Install iCloud.Dav.Auth as a Cake Tool #tool nuget:?package=iCloud.Dav.Auth&version=3.1.2
iCloud.Dav.Auth
iCloud.Dav.Auth is a .NET library that facilitates authentication and interaction with iCloud services.
Installation
You can install iCloud.Dav.Auth via NuGet package manager or by downloading the source code and building it manually.
NuGet Installation
To install iCloud.Dav.Auth via NuGet, run the following command in the Package Manager Console:
Install-Package iCloud.Dav.Auth
Manual Installation
To manually install iCloud.Dav.Auth, follow these steps:
- Download the source code from this repository.
- Open the solution file (.sln) in Visual Studio.
- Build the solution.
Usage
To use iCloud.Dav.Auth in your .NET project, you need to add a reference to the iCloud.Dav.Auth assembly. You can do this either by adding a reference to the respective NuGet package or by referencing the assembly directly.
Here are examples of how to use iCloud.Dav.Auth:
Authentication
using iCloud.Dav.Auth;
using iCloud.Dav.Auth.Store;
using iCloud.Dav.Core;
using System.Net;
using System.Threading;
NetworkCredential networkCredential = new NetworkCredential("icloud-email", "app-specific-password");
FileDataStore dataStore = new FileDataStore("folder-to-store-data");
UserCredential userCredential = await AuthorizationBroker.AuthorizeAsync("file-to-store-user-credentials", networkCredential, dataStore, CancellationToken.None);
BaseClientService.Initializer initializer = new BaseClientService.Initializer()
{
HttpClientInitializer = userCredential,
};
Revoke Token
using System.Threading;
bool result = await userCredential.RevokeTokenAsync(CancellationToken.None);
Contributing
Contributions to iCloud.Dav are welcome! If you want to contribute to the project, please fork the repository and create a pull request with your changes.
License
iCloud.Dav is licensed under the MIT license. See the License file for more information.
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 is compatible. |
.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
- iCloud.Dav.Core (>= 3.1.2)
-
.NETStandard 2.1
- iCloud.Dav.Core (>= 3.1.2)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on iCloud.Dav.Auth:
Package | Downloads |
---|---|
iCloud.Dav.Calendar
iCloud.Dav.Calendar is a .NET library that allows you to interact with iCloud calendars, events, reminder lists, and reminders. |
|
iCloud.Dav.People
iCloud.Dav.People is a .NET library that allows you to interact with iCloud contacts and contact groups. |
GitHub repositories
This package is not used by any popular GitHub repositories.