Giter Site home page Giter Site logo

aguafrommars / templates Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 2.0 1.69 MB

TheIdServer dotnet new template

License: Apache License 2.0

HTML 17.46% C# 70.29% Dockerfile 0.29% CSS 1.01% PowerShell 3.26% Less 0.41% JavaScript 7.17% Batchfile 0.11%
dotnet-new templates theidserver identityserver4 oidc oauth identity authentication security iam duende-identityserver

templates's Introduction

Templates

dotnet new templates

Create a TheIdServer solutions with dotnet new cli tool.

Build status

Nuget packages

TheIdServer.Duende.Template

Install

To install the template to create a solution using Duende IdentityServer:

dotnet new -i TheIdServer.Duende.Template

Use

> dotnet new tisduende -o TheIdServer
The template "TheIdServer.Duende" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on TheIdServer\TheIdServer.sln...
  Determining projects to restore...
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\test\WebAssembly.Net.Http\WebAssembly.Net.Http.csproj (in 114 ms).
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\src\TheIdServer.BlazorApp\TheIdServer.BlazorApp.csproj (in 916 ms).
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\test\Microsoft.AspNetCore.Components.Testing\Microsoft.AspNetCore.Components.Testing.csproj (in 1.08 sec).
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\src\TheIdServer\TheIdServer.csproj (in 2.03 sec).
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\test\TheIdServer.Test\TheIdServer.Test.csproj (in 2.04 sec).
  Restored C:\Projects\Perso\Templates\artifacts\TheIdServer\test\TheIdServer.IntegrationTest\TheIdServer.IntegrationTest.csproj (in 2.04 sec).
Restore succeeded.

The above commande create a Visual Studio solution in TheIdServer subfolder using Duende IdentityServer.

For a commercial use you need to acquire a license

TheIdServer
├─── src
|    ├─── TheIdServer // Server project
|    └─── TheIdServer.BlazorApp // Blazor application project
└─── test
     ├─── Microsoft.AspNetCore.Components.Testing // Components testing utilities
     ├─── TheIdServer.IntegrationTest // Server integration tests
     ├─── TheIdServer.Test // Server tests
     └─── WebAssembly.Net.Http // WASM test utilities

templates's People

Contributors

aguacongas avatar dependabot[bot] avatar olivieratsien avatar semantic-release-bot avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

templates's Issues

cannot convert from 'Aguacongas.IdentityServer.Store.IAdminStore<Aguacongas.IdentityServer.Store.Entity.Culture>' to 'Aguacongas.TheIdServer.BlazorApp.Services.IReadOnlyCultureStore'

On following instructions for setting up from template, I receive the following error on build.
Severity Code Description Project Path File Line Suppression State
Error CS1503 Argument 2: cannot convert from 'Aguacongas.IdentityServer.Store.IAdminStore<Aguacongas.IdentityServer.Store.Entity.Culture>' to 'Aguacongas.TheIdServer.BlazorApp.Services.IReadOnlyCultureStore' TheIdServer C:\dev\theidserverbp\TheIdServer\src\TheIdServer\Services C:\dev\theidserverbp\TheIdServer\src\TheIdServer\Services\PreRenderStringLocalizer.cs 13 Active

I believe that pulling in the following change from the parent project would resolve thie issue. Aguafrommars/TheIdServer#331

Is this Template still active?

Hey,

is this template still active maintained? It looks like it currently creates a .Net 7 Solution, which for me at least is broken, are there any plans to support .Net 8 with this template?

Thanks in advance!

Unit test project in template runs with errors

All of the unit tests within ExternalClaimsTransformerTest project in the template run into errors.

The error occurs in all cases when tests try to resolve ExternalClaimsTransformer service from serviceprovider within line

var sut = builder.GetRequiredService<ExternalClaimsTransformer<ApplicationUser>>();

A registration seems to be missing, but I haven't been able to figure out what exactly is missing or which extension still needs to be added to the registration.

This is the stack trace:

Message: 
System.InvalidOperationException : Unable to resolve service for type 'Aguacongas.IdentityServer.Abstractions.IFlushableCache1[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]' while attempting to activate 'Aguacongas.IdentityServer.Store.CacheAdminStore2[Aguacongas.IdentityServer.EntityFramework.Store.AdminStore`2[Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation,Aguacongas.IdentityServer.EntityFramework.Store.ConfigurationDbContext],Aguacongas.IdentityServer.Store.Entity.ExternalClaimTransformation]'.

Stack Trace: 
CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateArgumentCallSites(ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain, ParameterInfo[] parameters, Boolean throwIfCallSiteNotFound)
CallSiteFactory.CreateConstructorCallSite(ResultCache lifetime, ServiceIdentifier serviceIdentifier, Type implementationType, CallSiteChain callSiteChain)
CallSiteFactory.TryCreateExact(ServiceDescriptor descriptor, ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain, Int32 slot)
CallSiteFactory.TryCreateExact(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.CreateCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
CallSiteFactory.GetCallSite(ServiceIdentifier serviceIdentifier, CallSiteChain callSiteChain)
ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
ServiceProvider.GetService(Type serviceType)
ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
ExternalClaimsTransformerTest.TransformPrincipal_should_transform_claims() line 58
--- End of stack trace from previous location ---

New Template version

Hi There,

I notice there are updates to this repository, but in terms of releases on NuGet there is still only a 4.0.0 release which (when used) doesnt seem to work correctly:

image

Please could you advise as I have updated libraries, but it appears the bugs being found are in the supporting use of the framework and I am not quite sure where to look first ?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.