TagHelperSamples icon indicating copy to clipboard operation
TagHelperSamples copied to clipboard

Version for .NET Core 1.1?

Open FBueckert opened this issue 7 years ago • 2 comments

I've been looking around for a cleaner way of implementing authorizations rather than dumping code into my razor views. Feels too much like classic ASP with VBScript. This tag helper would help immensely with it, but my project is limited to 1.1. Is there a way to use this tag helper with 1.1? I see an issue for upgrading to 2.0, but I can't find a version previous to that.

FBueckert avatar Nov 28 '17 17:11 FBueckert

I made this tag helper after I moved the samples repo over to 2.0 so I never did have a 1.1 version. I'm not sure if the 1.1 version would be much different. Can you start by trying to copy the code for this tag helper into your project?

dpaquette avatar Nov 28 '17 21:11 dpaquette

Sorry for the late reply.

I tried copying the AuthorizeTagHelper class into my code, and it's missing a few things for it to work. There's no 1.1 version for Microsoft.AspNetCore.Authorization.Policy, which I suspect is the critical issue.

FBueckert avatar Dec 15 '17 14:12 FBueckert