Git Product home page Git Product logo

auth0-oidc-client-net's Introduction

Auth0 SDK for .NET Desktop and Mobile applications

OIDC Client for .NET Desktop (WinForms, WPF and UWP) as well as Xamarin-based iOS and Android mobile applications.

NuGet version Downloads License Build Status

๐Ÿ“š 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

  • MAUI Quickstart - our interactive guide for quickly adding login, logout and user information to a MAUI application using Auth0.
  • UWP Quickstart - our interactive guide for quickly adding login, logout and user information to a UWP application using Auth0.
  • WPF/WinForms Quickstart - our interactive guide for quickly adding login, logout and user information to a WPF and WinForms application using Auth0.
  • Xamarin Quickstart - our interactive guide for quickly adding login, logout and user information to a Xamarin application using Auth0.
  • WPF Sample App - a WPF application integrated with Auth0.
  • WinForms Sample App - a WinForms application integrated with Auth0.
  • Xamarin Sample App - a Xamarin application integrated with Auth0.
  • SDK docs - explore the documentation for this SDK.
  • Auth0 docs - explore our docs site and learn more about

Getting started

Requirements

For a list of supported platforms, please refer to the relevant documentation from Microsoft:

Installation

The SDK is available on Nuget for different platforms:

Install-Package Auth0.OidcClient.UWP
Install-Package Auth0.OidcClient.WPF
Install-Package Auth0.OidcClient.WinForms
Install-Package Auth0.OidcClient.iOS
Install-Package Auth0.OidcClient.AndroidX
Install-Package Auth0.OidcClient.MAUI

Note: As Auth0.OidcClient.Android relies on support libraries which have been deprecated by Google since 2019, there is no way for Auth0.OidcClient.Android to ever work on .NET 6 and above. If you wish to integrate Auth0 in an Android application, use Auth0.OidcClient.AndroidX instead.

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.
  • 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"
});

โ„น๏ธ Note that MAUI needs more specific configuration, ensure to read our instructions for MAUI when you are targetting MAUI.

API reference

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

Feedback

Contributing

We appreciate feedback and contribution to this repo! Before you get started, please see the following:

Raise an issue

To provide feedback or report a bug, please raise an issue on our issue tracker.

Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.


Auth0 Logo

Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout Why Auth0?

This project is licensed under the Apache-2.0 license. See the LICENSE file for more info.

auth0-oidc-client-net's People

Contributors

damieng avatar jerriep avatar frederikprijck avatar lbalmaceda avatar aashikgowda avatar beeradmoore avatar evansims avatar progdogusmc avatar aaronbastian avatar nicosabena avatar joshcanhelp avatar stevehobbsdev avatar widcket avatar mleybsage avatar erik-hooper avatar adamjmcgrath avatar ewanharris avatar luminousavocado avatar orihuelaconde avatar joseangelmt avatar clydeu avatar fossabot avatar sre-57-opslevel[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.