Gordon Beeming
Menu
Blog
RSS
About
#async
Creating an asynchronous AuthorizeAttribute in MVC
A couple days ago I needed to call a remote web api call in my AuthorizeAttribute sometimes but as mentioned in this (Is it possible to use async/await in MVC 4 AuthorizeAttribute?) StackOverflow question (and other forums) it isn’t supported but is in the newer .net core. Unfortunately the project I needed this on was traditional MVC so I was left still finding a way .
Posted on January 26, 2018 -
async
C#
Just Coding
MVC