Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

ASP.NET Identity - can it be as simple as supporting a single admin?

$
0
0

My use case is this: I have a website which is mostly public-facing ASP.NET Web Pages / Razor files (*.cshtml) but there are also a couple of admin pages in the /admin folder to whichonly I want to have access. Say that I am uniquely identified by an MS account.

What's the simplest way to secure the admin pages? Ideally, I'd like to do something like this:

# pseudocode; might go into web.config, some C# file, I don't care

path: admin
require-ms-account: me@example.com

And when I visited any admin page the site would validate that I am logged in using my MS account, and if not redirect me to the MS login form. What Idon't need / want is user registration forms, password handling, relational database to store all this, etc. Is that possible with ASP.NET Identity?


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>