Remora.OAuth2 1.0.0-alpha2

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

// Install Remora.OAuth2 as a Cake Tool
#tool nuget:?package=Remora.OAuth2&version=1.0.0-alpha2&prerelease                

Remora.OAuth2

This package contains the implementation of OAuth2's API interface models, provided by Remora.OAuth2.Abstractions.

Primarily, this project takes the completely agnostic interfaces and applies additional, domain-specific knowledge to them, such as serialization formats and data range validations.

Like its sibling, these types serve as the foundation of Remora.OAuth2's internal implementation, but can just as easily be used to implement your own OAuth2 library.

The primary goal of this project is to provide a concrete implementation of OAuth2's API types, including data object de/serialization and externally imposed limitations.

Structure

The library mostly mirrors Remora.OAuth2.Abstractions in structure, maintaining an implementation of each corresponding API object interface. The implementations are records, enabling thread-safe usage across as many concurrent actors as needed.

The Json folder contains various converters to handle cases where the default behaviour (from Remora.Rest) is not appropriate, or the type is too complex to realistically deserialize without special treatment.

There are also some helper types for accessing CDN assets, checking image formats, and storing OAuth2-provided constant values.

Usage

Beyond the concrete implementations of OAuth2's objects, the library provides a single extension method for the IServiceCollection type.

services.ConfigureOAuth2JsonConverters();

This method will add a named set of JsonSerializerOptions with all appropriate JSON converters for the various API, objects along with configuring naming rules.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen 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.0.0-alpha3 192 11/20/2023
1.0.0-alpha2 125 11/20/2022

Initial release.