Qlik.OAuthManager
0.0.5
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Qlik.OAuthManager --version 0.0.5
NuGet\Install-Package Qlik.OAuthManager -Version 0.0.5
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="Qlik.OAuthManager" Version="0.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Qlik.OAuthManager --version 0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Qlik.OAuthManager, 0.0.5"
#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 Qlik.OAuthManager as a Cake Addin #addin nuget:?package=Qlik.OAuthManager&version=0.0.5 // Install Qlik.OAuthManager as a Cake Tool #tool nuget:?package=Qlik.OAuthManager&version=0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
qlik-oauth-manager
Library for using QCS OAuth clients to produce access tokens. The tokens can be used with both of the
libraries QlikSense.NetSDK
and QlikSenseRestClient
. The access token can be used as an API key when
connecting. A flow to produce an access token could look like this:
var oauthManager = new OAuthManager(tenantUrl, clientId);
await oauthManager.AuthorizeInBrowser("user_default offline_access", redirectUri, Browser.Default);
var accessToken = await oauthManager.RequestNewAccessToken();
The resulting access token can then be use with the library QlikSense.NetSDK
to connect to the engine like this:
var location = QcsLocation.FromUri(tenantUrl);
location.AsApiKey(accessToken);
using (var app = await location.AppAsync(appId))
{
Console.WriteLine((await app.GetAppPropertiesAsync()).Title);
}
Or the key can be use to connect using the QlikSenseRestClient
like this:
var client = new RestClient(tenantUrl);
client.AsApiKeyViaQcs(accessToken);
Console.WriteLine(await client.GetAsync<JToken>("/api/v1/users/me"));
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 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 Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.