Base solution for your next web application
Open Closed

Automatic login as Guest user #4971


User avatar
0
elgaard created

hey

This is the first time im working with ASPNETZERO and i don't have much experience with aspnetboilerplate. We're using ASP.NET Core & jQuery

Use case: If the users arriving on the webapp haven't logged in, they will be automatically logged in as a Guest user with a Guest role that has limited access to pages and features. As a guest user they can log out and then create an account or log into an existing account.

It's like this topic #1831@d9bf82ff-60cf-499c-b791-3416f69c2a8a

I don't really know how the authorization works in this solution, so i don't really know where to being, classes also seems to be missing like the AbpMvcAuthorizeFilter when i search the entire solution for the class (in Visual Studio 2017).

Any help pointing me in the right direction is apprechiated.

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    How do you think you differentiate a guest to from another guest user. Authentication systems work on credentials. Without any credential all the guests are same (IP or Browser information are not credentials). I guess your design is wrong!
    Why don't you persist user operations (cart items, configurations etc...) on cookies and right after user registers or logins, save them to the database?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)