Identity.RequestToken 8.0.0

dotnet add package Identity.RequestToken --version 8.0.0
                    
NuGet\Install-Package Identity.RequestToken -Version 8.0.0
                    
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="Identity.RequestToken" Version="8.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Identity.RequestToken" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Identity.RequestToken" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Identity.RequestToken --version 8.0.0
                    
#r "nuget: Identity.RequestToken, 8.0.0"
                    
#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.
#:package Identity.RequestToken@8.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Identity.RequestToken&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Identity.RequestToken&version=8.0.0
                    
Install as a Cake Tool

Disclaimer

<h4 align="center">:warning: This package/product is not affiliated with Duende Identity. ⚠️</h4><br>

the package has been developed for a project of Royce Lark pvt,ltd which suits our use case. It includes a way to get the token from identity server hosted in diffrent host.

<h4 align="center">:warning: if you want help/support you must buy a support licence. to buy a licence contact web.html123@gmail.com:warning:</h4><br> <h4 align="center"> If You Would Like To Buy Me A Coffee... You Can Donate Via Paypal: https://www.paypal.me/Mohang2 </h4><br>

How to install

Install the package from NuGet or from the Package Manager Console :

PM> Install-Package Duende.Identity.RequestToken

How it works

var client = new HttpClient(); var disco = await client.GetDiscoveryDocumentAsync("idetity APi endpoint"); if (disco.IsError) { Console.WriteLine(disco.Error); return; } #region creds string clientSecret = "clietSecret"; string clientId = "Client Id"; string scope = "scope"; #endregion if (!string.IsNullOrEmpty(disco.TokenEndpoint)) { var tokenResponse = new RequestToken.RequestToken().GetToken(disco.TokenEndpoint, clientId, clientSecret, scope).Result;

if (tokenResponse.IsError)
{
    Console.WriteLine(tokenResponse.Error);
    return;
}

}

Thanks

Royce Lark would like to thank all the people that supports and contributes to the project and helped to improve the library.

<h4 align="center"> If You Would Like To Buy Me A Coffee... You Can Donate Via Paypal: https://www.paypal.me/Mohang2 </h4><br>

Product Compatible and additional computed target framework versions.
.NET 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 is compatible.  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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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
8.0.0 140 5/27/2024