ahmedaziz
Well-known member
- Joined
- Feb 22, 2023
- Messages
- 55
- Programming Experience
- 1-3
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?
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?