Rivr 1.0.1

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

// Install Rivr as a Cake Tool
#tool nuget:?package=Rivr&version=1.0.1                

Rivr .NET Client

nuget nuget Build and tests

Security

The industry-standard OAuth2 security protocol is used for authorization.

System level

The system level authorization utilizes a simplified version of OAuth2 and uses grant_type = client_credentials, which uses clientId and clientSecret to fetch an access_token. It is valid for 60 minutes and it is recommended to use a caching mechanism. In this example implementation, a file-based caching is used, but if you have multiple server instances, you might need to switch to something like Redis.

Merchant level

The merchant level authorization is a variant of OAuth2 which allows the system to act on behalf of a merchant. It is very similar to the system level authorization, but uses our own grant_type = merchant_credentials. With this, the clientId and the clientSecret along with a merchantId are used to fetch an access_token that includes the merchantId. This allows for the system to perform actions on behalf of the authorized merchant.

Which should I use?

The system level authorization is used when the system needs to perform tasks as itself, and the merchant level authorization is used when the system needs to perform tasks on behalf of a merchant.

An example of an response from the authentication endpoints:

{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnQtaWQiOiI3OWZlZTMwMi1lZDkyLTRjMDctYmM0Mi01OTg2YmZjY2JiYmIiLCJzY29wZSI6ImhlYWx0aDpyZWFkIG9yZGVyczp3cml0ZSBvcmRlcnM6cmVhZCBkZXZpY2VzOnJlYWQgcGxhdGZvcm1zIG1lcmNoYW50czpyZWFkIiwibWVyY2hhbnQtaWQiOiI3NWVhODEzZC00Zjc4LTQxMDItOGJiNy1jMmIxNWU3MDQ5ZDgiLCJuYmYiOjE3MTM4NTM4MDcsImV4cCI6MTcxMzg1NzQwNywiaWF0IjoxNzEzODUzODA3fQ.uBjABuvnhZ9PUusKEJVvIZ5rrLCJmUztBNgVPuSqLHc",
  "token_type": "Bearer",
  "expires_in": 3599,
  "scope": "health:read orders:write orders:read devices:read platforms merchants:read"
}

Tip: Use the site https://www.jwt.io if you wish to inspect the contents of the access_token.

API Actions

This library

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 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 (3)

Showing the top 3 NuGet packages that depend on Rivr:

Package Downloads
Rivr.Samples.Console

Package Description

Rivr.Samples.Console.DotNet6

Package Description

Rivr.Samples.Console.DependencyInjection

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.4 109 9/5/2024
1.0.2 121 8/20/2024
1.0.1 99 8/16/2024
1.0.0 105 8/16/2024