Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I work on blazor server side . I face issue I can't make user redirect to login page

when user try to access web application by copy and past URL of my application on new browser page

my scenario as below :

1-I open my web application as www.union.com .

2-it open login page as first page when connect to www.union.com .

3-I make login with user name and password it log in successfully without using identity then it open dashboard page after login success as www.union.com/Dashboard/AElaziz

AElaziz is user name an dashboard is first page after login success

4-I copy link www.union.com/Dashboard/AElaziz and open it on new page browser and past it then run page

it open dashboard without make login to my web application

so How to prevent this behavior form happen on blazor server side with easy way if possible?

What I have tried:

How to prevent user from open my application if not login success
Posted
Updated 6-Apr-23 20:12pm

1 solution

If you do a quick Google Search, like this: blazor server authorization redirect to page - Google Search[^] you can find answers like this: Blazor redirect to login if user is not authenticated[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900