I would like to make an authorize policy in asp.net 5 mvc 6 that allows the user to edit his/her own content. I would hope that the usage would look something like this.

[Authorize(Policy = "EditOwnContent")]
public Blog Post([FromBody]Blog blogPost)

Also the Blog data type has a userId element that the policy would need to check against.

Related posts

Recent Viewed