Skip to content

Instantly share code, notes, and snippets.

View renanrcp's full-sized avatar
Don't stay awake, for too long

Renan Pinheiro renanrcp

Don't stay awake, for too long
View GitHub Profile
@renanrcp
renanrcp / IAsyncAuthenticationFilter.cs
Last active March 9, 2020 00:55
Here's an example code of the IAsyncAuthenticationFilter.
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
namespace MyWebApi.Filters
{
public class AuthenticationFilter : IAsyncAuthenticationFilter