Search code examples
oauth-2.0refresh-tokenopeniddict

Refresh Token Flow With Authorization Code Flow


Is there a OpenIddict Sample with Authorization Code Flow with Refresh Tokens?

I use Velusia sample project as server and add

options.AllowRefreshTokenFlow();

to my .AddServer function. I add "offline_access" scope to my Application. However when I send Authorization code to the server, it doesn't return a refresh token.


Solution

  • I forgot to add offline_access scope to my client code request. When I add it, everything worked as expected.