Ask Your Question
1

Can authentication be cached across tabs and browsers in Blazor Server with Microsoft Identity?

asked 2022-06-14 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-05-14 00:00:00 +0000

nofretete gravatar image

Microsoft Identity provides a feature called persistent storage, which allows authentication information to be persisted across sessions and tabs. However, this feature is not designed to work across different browsers.

The authentication information is stored in a cookie by default, and cookies can only be accessed by the same browser that created them. Therefore, authentication cannot be cached across tabs and browsers in Blazor Server with Microsoft Identity.

If you want to share authentication information across different browsers or devices, you would need to implement a custom solution, such as using a database or a distributed cache.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-06-14 11:00:00 +0000

Seen: 10 times

Last updated: May 14 '21