A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/leastprivilege/AspNetCoreSecuritySamples below:

leastprivilege/AspNetCoreSecuritySamples: Samples for various ASP.NET Core Security Features

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.

Simple local login page with cookie-based session.

External Authentication with callback

Google authentication will simple callback logic on an MVC controller.

Sample showing cookie-based session with OpenID Connect-based authentication and automated access token lifetime management.

Some variations of policy- and resource-based authorization

Shows simple protect/unprotect calls and corresponding key container.

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.

Simple device flow client.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4