{"id":13569992,"url":"https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate","last_synced_at":"2025-04-04T06:31:37.481Z","repository":{"id":38439812,"uuid":"146275359","full_name":"damienbod/IdentityServer4AspNetCoreIdentityTemplate","owner":"damienbod","description":"An ASP.NET Core 6.0 IdentityServer4 Identity Bootstrap 4 template with localization","archived":false,"fork":false,"pushed_at":"2022-12-08T15:08:25.000Z","size":6299,"stargazers_count":324,"open_issues_count":14,"forks_count":64,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-03-26T08:06:52.513Z","etag":null,"topics":["2fa","aspnet-core","aspnetcore","bootstrap4","certs","fido2","identity","identityserver4","identityserver4-identity-template","localization","mvc","nuget","sts"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/IdentityServer4AspNetCoreIdentityTemplate/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damienbod.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-27T09:21:26.000Z","updated_at":"2025-02-12T06:37:54.000Z","dependencies_parsed_at":"2023-01-25T14:31:08.880Z","dependency_job_id":null,"html_url":"https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FIdentityServer4AspNetCoreIdentityTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FIdentityServer4AspNetCoreIdentityTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FIdentityServer4AspNetCoreIdentityTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FIdentityServer4AspNetCoreIdentityTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damienbod","download_url":"https://codeload.github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777819,"owners_count":20832032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2fa","aspnet-core","aspnetcore","bootstrap4","certs","fido2","identity","identityserver4","identityserver4-identity-template","localization","mvc","nuget","sts"],"created_at":"2024-08-01T14:00:46.876Z","updated_at":"2025-04-04T06:31:32.464Z","avatar_url":"https://github.com/damienbod.png","language":"C#","funding_links":[],"categories":["localization","C# #"],"sub_categories":[],"readme":"# An ASP.NET Core IdentityServer4 Identity Template with Bootstrap 4 and Localization\r\n\r\n[![.NET](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/actions/workflows/dotnet.yml) [![NuGet Status](http://img.shields.io/nuget/v/IdentityServer4AspNetCoreIdentityTemplate.svg?style=flat-square)](https://www.nuget.org/packages/IdentityServer4AspNetCoreIdentityTemplate/) [Change log](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/master/Changelog.md)\r\n\r\n## Features\r\n\r\n- ASP.NET Core 6\r\n- Latest ASP.NET Core Identity\r\n- Bootstrap 4 UI\r\n- Localization en-US, de-DE, it-IT, fr-FR, zh-Hans, es-MX, de-CH, ga-IE, gsw-CH\r\n- 2FA\r\n- TOTP\r\n- FIDO2 MFA\r\n- Personal data, download, delete (part of Identity)\r\n- Azure AD, Cert, key vault deployments API\r\n- SendGrid Email API\r\n- npm with bundleconfig used for frontend packages\r\n- EF Core\r\n- Support for ui_locales using OIDC logins\r\n\r\nsome print screens:\r\n\r\nit-IT\r\n\r\n![it-IT](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/main/images/it-IT_template.png)\r\n\r\nde-DE\r\n\r\n![de-DE](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/main/images/de-DE_template.png)\r\n\r\nen-US\r\n\r\n![en-US](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/main/images/en-US_template.png)\r\n\r\nfr-FR\r\n\r\n![fr-FR](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/main/images/fr-FR_template.png)\r\n\r\nzh-Hans\r\n\r\n![zh-Hans](https://github.com/damienbod/IdentityServer4AspNetCoreIdentityTemplate/blob/main/images/zh-Hans_template.png)\r\n\r\n## Using the template\r\n\r\n### install\r\n\r\nFrom NuGet:\r\n\r\n```\r\ndotnet new -i IdentityServer4AspNetCoreIdentityTemplate\r\n```\r\n\r\nLocally built nupkg:\r\n\r\n```\r\ndotnet new -i IdentityServer4AspNetCoreIdentityTemplate.6.0.1.nupkg\r\n```\r\n\r\nLocal folder:\r\n\r\n```\r\ndotnet new -i \u003cPATH\u003e\r\n```\r\n\r\nWhere `\u003cPATH\u003e` is the path to the folder containing .template.config.\r\n\r\n### run\r\n\r\n```\r\ndotnet new sts -n YourCompany.Sts\r\n```\r\n\r\nUse the `-n` or `--name` parameter to change the name of the output created. This string is also used to substitute the namespace name in the .cs file for the project.\r\n\r\n### Setup, Using the application for your System\r\n\r\n- Change the EF Core code from SQLite to your required database\r\n- Change the ApplicationUser class as required, remove/add the properties\r\n- Add the migrations and create the database\r\n- Define the deployment URLs, create the certs, and use these in your application (Startup, config files)\r\n- Add the external providers for login as required, or remove\r\n- Remove the UI views which are not required\r\n- Add remove the resource file localizations and also in the Startup.\r\n- Add the client configuration to the Config.cs class (dev, test, staging, prod, or whatever)\r\n- Update the claims in the IdentityWithAdditionalClaimsProfileService\r\n- Add the security headers as required, CSP, IFrame, XSS, HSTS, ...\r\n- If you deploy in a multi instance environment, add the session data to a database using the IdentityServer4.EntityFramework NuGet package\r\n- Add \"AZURE_TENANT_ID\": \"your-tenandId\" to the launch settings to test in VS with Azure Key Vault certificates\r\n\r\n### uninstall\r\n\r\n```\r\ndotnet new -u IdentityServer4AspNetCoreIdentityTemplate\r\n```\r\n\r\n## Development\r\n\r\n### build\r\n\r\nhttps://docs.microsoft.com/en-us/dotnet/core/tutorials/create-custom-template\r\n\r\n```\r\nnuget pack content/IdentityServer4AspNetCoreIdentityTemplate.nuspec\r\n```\r\n\r\n### dotnet Migrations\r\n\r\n#### open the cmd in project folder:\r\n\r\n```\r\ndotnet restore\r\n\r\ndotnet ef migrations add sts_init --context ApplicationDbContext --verbose\r\n\r\ndotnet ef database update  --verbose\r\n```\r\n\r\n## Using Powershell to create the self signed certs:\r\n\r\n```\r\nNew-SelfSignedCertificate -DnsName \"sts.dev.cert.com\", \"sts.dev.cert.com\" -CertStoreLocation \"cert:\\LocalMachine\\My\"\r\n\r\n$mypwd = ConvertTo-SecureString -String \"1234\" -Force -AsPlainText\r\n\r\nGet-ChildItem -Path cert:\\localMachine\\my\\\"The thumbprint...\" | Export-PfxCertificate -FilePath C:\\git\\sts_dev_cert.pfx -Password $mypwd\r\n```\r\n\r\n## Credits, Used NuGet packages + ASP.NET Core 3.1 standard packages\r\n\r\n- IdentityServer4\r\n- IdentityServer4.AspNetIdentity\r\n- Azure.Security.KeyVault.Secrets\r\n- Microsoft.IdentityModel.Clients.ActiveDirectory\r\n- Sendgrid\r\n- NetEscapades.AspNetCore.SecurityHeaders\r\n- Serilog\r\n\r\n## Links\r\n\r\nhttp://docs.identityserver.io/en/release/\r\n\r\nhttps://github.com/IdentityServer/IdentityServer4\r\n\r\nhttps://getbootstrap.com/\r\n\r\nhttps://nodejs.org/en/\r\n\r\nhttps://www.npmjs.com/\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2FIdentityServer4AspNetCoreIdentityTemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamienbod%2FIdentityServer4AspNetCoreIdentityTemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2FIdentityServer4AspNetCoreIdentityTemplate/lists"}