iCloud.Dav.Auth 3.1.2

There is a newer version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="iCloud.Dav.Auth" Version="3.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iCloud.Dav.Auth --version 3.1.2                
#r "nuget: iCloud.Dav.Auth, 3.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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:

  1. Download the source code from this repository.
  2. Open the solution file (.sln) in Visual Studio.
  3. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
3.1.5 144 11/15/2024
3.1.4 161 10/24/2024
3.1.3 356 4/13/2024
3.1.2 206 4/5/2024
3.1.0 392 11/18/2023
3.0.0 1,500 4/18/2023
3.0.0-alpha 260 12/23/2022
2.0.0 735 6/26/2022
1.0.1 611 9/16/2021
1.0.0 564 9/15/2021