Rivr 1.0.1
See the version list below for details.
dotnet add package Rivr --version 1.0.1
NuGet\Install-Package Rivr -Version 1.0.1
<PackageReference Include="Rivr" Version="1.0.1" />
paket add Rivr --version 1.0.1
#r "nuget: Rivr, 1.0.1"
// 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
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 | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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. |
-
.NETStandard 2.1
- Microsoft.Extensions.Caching.Memory (>= 8.0.0)
- System.Text.Json (>= 8.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.