Implement Refresh Tokens in ASP.NET (OWIN) MVC Application

Last Updated: Nov 11, 2024

Overview

When trying to implement refresh tokens in the C# ASP.NET (OWIN) MVC Application, it might be hard to find any documentation or working code for this type of application.

Applies To

Cause

There is no official documentation or an official sample for implementing the use of Refresh Tokens in an ASP.NET (OWIN) MVC application.

Solution

The following resource is a sample application from our Engineering team that tested this when Refresh Tokens first launched: Auth0 - ASP.NET (OWIN) MVC sample - Getting a refresh token.

NOTE: This is more of a documented resource than an official implementation. However, this project has not been updated in a few years, so some dependencies might need to be updated as well.