Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leastprivilege/AspNetCoreSecuritySamples
Samples for various ASP.NET Core Security Features
https://github.com/leastprivilege/AspNetCoreSecuritySamples
Last synced: 5 days ago
JSON representation
Samples for various ASP.NET Core Security Features
- Host: GitHub
- URL: https://github.com/leastprivilege/AspNetCoreSecuritySamples
- Owner: leastprivilege
- License: apache-2.0
- Created: 2016-01-06T11:04:17.000Z (almost 9 years ago)
- Default Branch: aspnetcore3
- Last Pushed: 2020-10-12T15:30:02.000Z (about 4 years ago)
- Last Synced: 2024-11-06T06:02:08.141Z (6 days ago)
- Language: JavaScript
- Homepage:
- Size: 4.31 MB
- Stars: 709
- Watchers: 64
- Forks: 163
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Samples for various ASP.NET Core Security Features
Many samples you find on the internet try to demo a certain feature in the context of a larger use-case.
I find this often distracting.The samples here follow the "write the simplest sample to show the feature" philosophy. Maybe you find this more useful.
### Local Authentication
Simple local login page with cookie-based session.### External Authentication with callback
Google authentication will simple callback logic on an MVC controller.### OidcTokensApis
Sample showing cookie-based session with OpenID Connect-based authentication and automated access token lifetime management.### Authorization
Some variations of policy- and resource-based authorization### DataProtection
Shows simple protect/unprotect calls and corresponding key container.### SPA & BFF
Two variations of how to protect a JavaScript application. SPA is pure JS where the token management happens in the front-end,
whereas BFF is a combination of UI front-end and back-end token management.### Device Flow
Simple device flow client.