locked
Tracking of anonymous users in WebAPI RRS feed

  • Question

  • User1358036820 posted

    We have a WebAPI that we are looking to use IdentityServer. This is fine for users who are registered and we can allow various actions like adding to shopping cart and other user tracking as we already have the user id since they are logged in.

    We want to allow anonymous users to add things to cart and other actions. We have been looking at some way of doing this and I was wondering if anyone can suggest which one of the following may work well.

    1. Track user with some generic ID and keep passing that to WebAPI until user is logged in and then start using tokens?
    2. Create a new endpoint for IdentityServer which gives an anonymous token and use that until user is logged in
    3. We are leaning towards 2 but still pondering.

    I am wondering if there are any other alternatives to above.

    Appreciate any advice.

    Thursday, October 29, 2020 3:23 PM

All replies