Auth0Avalonia 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Auth0Avalonia --version 1.0.2
NuGet\Install-Package Auth0Avalonia -Version 1.0.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="Auth0Avalonia" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Auth0Avalonia --version 1.0.2
#r "nuget: Auth0Avalonia, 1.0.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 Auth0Avalonia as a Cake Addin
#addin nuget:?package=Auth0Avalonia&version=1.0.2

// Install Auth0Avalonia as a Cake Tool
#tool nuget:?package=Auth0Avalonia&version=1.0.2

alternate text is missing from this package README image

Auth0 SDK for .NET Avalonia applications

OIDC Client for .NET Desktop (Avalonia) applications.

NuGet version Build status License

📚 Documentation - 🚀 Getting Started - 💻 API Reference - 💬 Feedback

This library makes use of the IdentityModel/IdentityModel.OidcClient library and uses code from the IdentityModel/IdentityModel.OidcClient.Samples repository to achieve browser integration.

Documentation

  • SDK docs - explore the documentation for this SDK.
  • Auth0 docs - explore our docs site and learn more about

Getting started

Installation

The SDK is available on Nuget for different platforms:

Install-Package Auth0Avalonia 

Configure Auth0

Create a Native Application in the Auth0 Dashboard.

If you're using an existing application, verify that you have configured the following settings in your Native Application:

  • Click on the "Settings" tab of your application's page.
  • Ensure that "Token Endpoint Authentication Method" under "Application Properties" is set to "None"
  • Scroll down and click on the "Show Advanced Settings" link.
  • Under "Advanced Settings", click on the "OAuth" tab.
  • Ensure that "JsonWebToken Signature Algorithm" is set to RS256 and that "OIDC Conformant" is enabled.

Next, configure the following URLs for your application under the "Application URIs" section of the "Settings" page:

  • Allowed Callback URLs
  • Allowed Logout URLs

For the values for these URLs, please refer to the corresponding quickstart from our documentation.

Take note of the Client ID and Domain values under the "Basic Information" section. You'll need these values to configure the SDK.

Configure the SDK

All platforms share the same interface, so you can use the following code to instantiate the Auth0Client:

using Auth0.OidcClient;
// ...
var auth0Client = new Auth0Client(new Auth0ClientOptions
{
    Domain = "YOUR_AUTH0_DOMAIN",
    ClientId = "YOUR_AUTH0_CLIENT_ID"
});

API reference

Read the full API reference to find out about the public API's this SDK exposes.

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 was computed. 
.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

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
1.1.3 316 1/12/2024
1.0.2 345 12/6/2022

Version 1.0.2
- Readme and Docs Fix
- Icon Update
Version 1.0.1
- WebBrowser and WebView Fixes
Version 1.0.0
- Initial Avalonia Implementation