question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refresh token flow in ASP.NET Core MVC environment

See original GitHub issue

Confirm you’ve already contributed to this project or that you sponsor it

  • I confirm I’m a sponsor or a contributor

Version

3.x

Question

Hi, Kévin!

  1. Could you provide some sample(-s) where refreshing tokens is implemented for MVC with cookie authentication scheme? If not, could you give us some ideas how it could be implemented? I found this one, but it looks so tricky that I can’t believe this couldn’t be reached in a more simple and native way.

  2. Current behavior of a silent re-authentication not fully transparent for me. How does it happen? I see, that if the cookie expires re-authentication is triggered, goes silently (prompt=none?) and lands me on the main page with no respect to the page I came from. Is that alternate to refresh token flow? If so, can we configure it to use some return_url for a seamless UX?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
a-a-kcommented, Nov 22, 2022

Huh, big thanks and sorry for giving so out of square description ) I’ll check this right now/

0reactions
kevinchaletcommented, Nov 22, 2022

Great to hear!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use Refresh Tokens in ASP.NET Core Apps
Learn how refresh tokens help you achieve this balance by exploring how to manage them in an ASP.NET Core application that calls an...
Read more >
JWT Authentication With Refresh Tokens In .NET 6.0
Refresh tokens are the kind of tokens that can be used to get new access tokens. When the access tokens expire, we can...
Read more >
Refresh JWT Token with ASP.NET (Core) (C#)
Refresh Token Flow during Login​​ This flow can be placed before or after generating a JWT Token. Generate a random token:
Read more >
JWT Authentication Flow with Refresh Tokens in ASP.NET ...
A comprehensive guide on implementing JWT authentication with refresh tokens in ASP.NET Core Web API using Entity Framework Core and ...
Read more >
ASP.NET Core 3.1 API - JWT Authentication with Refresh ...
The generateRefreshToken() helper method returns a new refresh token that expires after 7 days. The created date and user ip address are saved ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found