Comments (11)
I had the same issue, but was able to resolve it by specifying the most current version, found here:
https://www.nuget.org/packages/IdentityServer4.Templates
dotnet new --install IdentityServer4.Templates::4.0.1
from identityserver4.templates.
I am pushing a new version today. Maybe that fixes the problems.
from identityserver4.templates.
A little late to this one, but I just noticed that this only works if you're running the command in a Windows command prompt that's running as administrator. Figured I'd add this here so someone else might find this in the future and not waste their time.
from identityserver4.templates.
works on my machines.
dotnet new -i identityserver4.templates
Restore completed in 685.74 ms for /Users/dominick/.templateengine/dotnetcli/v3.1.102/scratch/restore.csproj.
Usage: new [options]
Options:
-h, --help Displays help for this command.
-l, --list Lists templates containing the specified name. If no name is specified, lists all templates.
-n, --name The name for the output being created. If no name is specified, the name of the current directory is used.
-o, --output Location to place the generated output.
-i, --install Installs a source or a template pack.
-u, --uninstall Uninstalls a source or a template pack.
--nuget-source Specifies a NuGet source to use during install.
--type Filters templates based on available types. Predefined values are "project", "item" or "other".
--dry-run Displays a summary of what would happen if the given command line were run if it would result in a template creation.
--force Forces content to be generated even if it would change existing files.
-lang, --language Filters templates based on language and specifies the language of the template to create.
--update-check Check the currently installed template packs for updates.
--update-apply Check the currently installed template packs for update, and install the updates.
Templates Short Name Language Tags
------------------------------------------------------------------------------------------------------------------------------------------
Console Application console [C#], F#, VB Common/Console
Class library classlib [C#], F#, VB Common/Library
WPF Application wpf [C#] Common/WPF
WPF Class library wpflib [C#] Common/WPF
WPF Custom Control Library wpfcustomcontrollib [C#] Common/WPF
WPF User Control Library wpfusercontrollib [C#] Common/WPF
Windows Forms (WinForms) Application winforms [C#] Common/WinForms
Windows Forms (WinForms) Class library winformslib [C#] Common/WinForms
Worker Service worker [C#] Common/Worker/Web
Unit Test Project mstest [C#], F#, VB Test/MSTest
NUnit 3 Test Project nunit [C#], F#, VB Test/NUnit
NUnit 3 Test Item nunit-test [C#], F#, VB Test/NUnit
xUnit Test Project xunit [C#], F#, VB Test/xUnit
Razor Component razorcomponent [C#] Web/ASP.NET
Razor Page page [C#] Web/ASP.NET
MVC ViewImports viewimports [C#] Web/ASP.NET
MVC ViewStart viewstart [C#] Web/ASP.NET
Blazor Server App blazorserver [C#] Web/Blazor
ASP.NET Core Empty web [C#], F# Web/Empty
IdentityServer4 with AdminUI is4admin [C#] Web/IdentityServer4
IdentityServer4 with ASP.NET Core Identity is4aspid [C#] Web/IdentityServer4
IdentityServer4 Empty is4empty [C#] Web/IdentityServer4
IdentityServer4 with Entity Framework Stores is4ef [C#] Web/IdentityServer4
IdentityServer4 with In-Memory Stores and Test Users is4inmem [C#] Web/IdentityServer4
IdentityServer4 Quickstart UI (UI assets only) is4ui [C#] Web/IdentityServer4
ASP.NET Core Web App (Model-View-Controller) mvc [C#], F# Web/MVC
ASP.NET Core Web App webapp [C#] Web/MVC/Razor Pages
ASP.NET Core with Angular angular [C#] Web/MVC/SPA
ASP.NET Core with React.js react [C#] Web/MVC/SPA
ASP.NET Core with React.js and Redux reactredux [C#] Web/MVC/SPA
Razor Class Library razorclasslib [C#] Web/Razor/Library/Razor Class Library
ASP.NET Core Web API webapi [C#], F# Web/WebAPI
ASP.NET Core gRPC Service grpc [C#] Web/gRPC
dotnet gitignore file gitignore Config
global.json file globaljson Config
NuGet Config nugetconfig Config
Dotnet local tool manifest file tool-manifest Config
Web Config webconfig Config
Solution File sln Solution
Protocol Buffer File proto Web/gRPC
Examples:
dotnet new mvc --auth Individual
dotnet new viewstart
dotnet new --help
from identityserver4.templates.
doesn't work on my machines either - dotnet new -i in the template dir produces the results with the is4 templates.
Change directory and try "dotnet new -l" returns a list, without the is4 templates.
from identityserver4.templates.
What are the requirements to make it work? It does not work for me.
from identityserver4.templates.
It does not work for me.
from identityserver4.templates.
It does not work for me either. And I can't seem to get any tutorial working that starts from the ground up :(
from identityserver4.templates.
Yeah I also cannot get the templates to install. However it appears that it is related to 401 auth errors to the nuget repos.
from identityserver4.templates.
Same issue for me
C:\Users>dotnet new -i IdentityServer4.Templates
Determining projects to restore...
C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp1.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [C:\Users\.templateengine\dotnetcli\v5.0.100-rc.1.20452.10\scratch\restore.csproj]
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='IdentityServer4.Templates'&semVerLevel=2.0.0'.
Response status code does not indicate success: 401 (Logon failed.).
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='IdentityServer4.Templates'&semVerLevel=2.0.0'.
Response status code does not indicate success: 401 (Logon failed.).
C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\NuGet.targets(130,5): error : Failed to retrieve information about 'IdentityServer4.Templates' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='IdentityServer4.Templates'&semVerLevel=2.0.0'. [C:\Users\.templateengine\dotnetcli\v5.0.100-rc.1.20452.10\scratch\restore.csproj]
C:\Program Files\dotnet\sdk\5.0.100-rc.1.20452.10\NuGet.targets(130,5): error : Response status code does not indicate success: 401 (Logon failed.). [C:\Users\.templateengine\dotnetcli\v5.0.100-rc.1.20452.10\scratch\restore.csproj]
from identityserver4.templates.
You can manually download the samples from https://github.com/IdentityServer/IdentityServer4 ->Samples/Quickstart and start from there. For the most part those samples are what you create in the official tutorials: https://identityserver4.readthedocs.io/en/aspnetcore1/quickstarts/1_client_credentials.html
from identityserver4.templates.
Related Issues (20)
- dotnet new still installing asp.net core 2.1 templates HOT 2
- Updating UI .sh missing in IdentityServer4InMem template HOT 1
- SeedData doesnt fill ASPNetUserClaims table, after create is4aspid template (Sqlserver) HOT 1
- External authentication error with Windows Integration on is4aspid template HOT 2
- Production ready? HOT 1
- Redirect to http://localhost:5000/grants not working HOT 3
- Fresh install of IdentityServer4AspNetIdentity does not work. HOT 1
- Unable to create client in Admin HOT 6
- Fresh Install of is4aspid template doesn't work with Google or Identity Auth HOT 3
- How can the configuration of the is4inmem template be done in JSON? HOT 5
- Support for IdentityServer4 (4.0.2) HOT 2
- is4aspid Template causes Local Authentication to not Redirect to Client Application following successful Login HOT 2
- Question regarding setting up a IdentityServer4 project with is4ui (http 404 error) HOT 1
- Not redirected to Spa client when using External authentication. Works when using username / pass. HOT 2
- Template relies on an uncompatible package Serilog.AspNetCore
- "dotnet new is4ui" not working
- GetAuthorizationContextAsync fails to parse the IdP value?
- "SQL scripts for SqlServer" link is broken
- is4admin doesn't show UI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from identityserver4.templates.