Identity.RequestToken
8.0.0
dotnet add package Identity.RequestToken --version 8.0.0
NuGet\Install-Package Identity.RequestToken -Version 8.0.0
<PackageReference Include="Identity.RequestToken" Version="8.0.0" />
<PackageVersion Include="Identity.RequestToken" Version="8.0.0" />
<PackageReference Include="Identity.RequestToken" />
paket add Identity.RequestToken --version 8.0.0
#r "nuget: Identity.RequestToken, 8.0.0"
#:package Identity.RequestToken@8.0.0
#addin nuget:?package=Identity.RequestToken&version=8.0.0
#tool nuget:?package=Identity.RequestToken&version=8.0.0
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 | Versions 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. |
-
net7.0
- IdentityModel (>= 7.0.0)
- Microsoft.EntityFrameworkCore (>= 7.0.0)
-
net8.0
- IdentityModel (>= 7.0.0)
- Microsoft.EntityFrameworkCore (>= 8.0.0)
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 |