Bondx.Piranha.IdentityServer4.Auth
1.0.1
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 Bondx.Piranha.IdentityServer4.Auth --version 1.0.1
NuGet\Install-Package Bondx.Piranha.IdentityServer4.Auth -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="Bondx.Piranha.IdentityServer4.Auth" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bondx.Piranha.IdentityServer4.Auth --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bondx.Piranha.IdentityServer4.Auth, 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 Bondx.Piranha.IdentityServer4.Auth as a Cake Addin #addin nuget:?package=Bondx.Piranha.IdentityServer4.Auth&version=1.0.1 // Install Bondx.Piranha.IdentityServer4.Auth as a Cake Tool #tool nuget:?package=Bondx.Piranha.IdentityServer4.Auth&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Welcome to Piranha Identity Server 4 Auth!
services.AddPiranha(options =>
{
options.AddRazorRuntimeCompilation = true;
options.UseFileStorage(naming: Piranha.Local.FileStorageNaming.UniqueFolderNames);
options.UseImageSharp();
options.UseManager();
options.UseTinyMCE();
options.UseMemoryCache();
options.UseEF<SQLiteDb>(db =>
db.UseSqlite(_config.GetConnectionString("piranha")));
options.UseIdentityServer4Auth(ids4Options =>
{
ids4Options.SignInScheme = "Cookies";
ids4Options.Authority = "https://identityserver4.io";
ids4Options.ClientId = "client id";
ids4Options.RequireHttpsMetadata = false;
ids4Options.ResponseType = "code id_token";
ids4Options.SaveTokens = true;
ids4Options.GetClaimsFromUserInfoEndpoint = true;
ids4Options.UseTokenLifetime = false;
ids4Options.ClientSecret = "your secret key";
ids4Options.Scope.Add("your scope");
ids4Options.AuthenticationMethod = OpenIdConnectRedirectBehavior.FormPost;
});
});
Configuration
it's a standart oidc client parameters
options.UseIdentityServer4Auth(ids4Options =>
{
ids4Options.SignInScheme = "Cookies";
ids4Options.Authority = "https://identityserver4.io";
ids4Options.ClientId = "client id";
ids4Options.RequireHttpsMetadata = false;
ids4Options.ResponseType = "code id_token";
ids4Options.SaveTokens = true;
ids4Options.GetClaimsFromUserInfoEndpoint = true;
ids4Options.UseTokenLifetime = false;
ids4Options.ClientSecret = "your secret key";
ids4Options.Scope.Add("your scope");
ids4Options.AuthenticationMethod = OpenIdConnectRedirectBehavior.FormPost;
});
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. |
.NET Core | netcoreapp3.1 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETCoreApp 3.1
- IdentityModel (>= 3.1.0)
- Microsoft.AspNetCore.Authentication.OpenIdConnect (>= 3.1.0)
- Piranha (>= 8.4.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.