Questions tagged [anonymous-users]

Questions involving this tag should cover topics related to identifying a user for the purpose access control in relation to a product or service that may span multiple sessions over an indefinite period of time. Such a user could be either an individual person or some implementation of a system, such as an API client.

An anonymous user may be:

  • accessing an installed or web-based application as part of a trial
  • accessing an installed or web-based application for the purposes of secrecy
  • associated with a usage quota for abuse prevention
  • granted temporary/guest access to edit or view a resource

Questions related to identifying a user for the purpose of advertising or analytics are considered off-topic for this tag. Depending on the context, questions regarding strategies to deanonymize a user may also be considered off-topic (such as deanonymizing a Sign in with Apple user).

Related tags:

Web-based anonymous access is often associated with methods of storing user identifiers and tokens such as:

68 questions
117
votes
8 answers

How to check whether the user is anonymous or not in Django?

def index(request): the_user = request.user In Django, how do I know if it's a real user or not? I tried: if the_user: but "AnonymousUser" is there even if no one logs in. So, it always returns true and this doesn't work.
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
8
votes
4 answers

Caching for anonymous users in django

How would I go about caching pages for anonymous users but rendering them for authorized users in Django 1.6? There used to be a CACHE_MIDDLEWARE_ANONYMOUS_ONLY flag that sounded perfect, but that has gotten removed. I'm asking because every page…
Nixarn
  • 1,526
  • 2
  • 15
  • 27
7
votes
4 answers

Anonymous users in Rails -- security considerations?

I'm looking at implementing some form of anonymous user system in Rails. I need to let people do things (creating records, looking at what they've created, etc), without actually creating an account. Once they create an account, everything persists…
Tim Sullivan
  • 16,808
  • 11
  • 74
  • 120
6
votes
0 answers

Firebase - convert anonymous user to logged in user?

Context: In my iOS game, I'd like to allow users to play without logging in (authenticating anonymously in Firebase to save user data), but also give them the option to login with Facebook to unlock additional gameplay. I'm attempting a modification…
kcmoffat
  • 383
  • 2
  • 8
6
votes
2 answers

How to track anonymous users with Flask

My app implements a shopping cart in which anonymous users can fill their cart with products. User Login is required only before payment. How can this be implemented? The main challenge is that flask must keep track of the user (even if anonymous)…
LuisO
  • 61
  • 1
  • 4
6
votes
1 answer

How to load roles from database for anonymous user in spring security 3?

I'm using Spring Security 3.0.2 and I can't find a way to load roles of anonymous user from database (I've got dynamic roles where roles can be given to everyone). I've tried to use a custom anonymousAuthenticationProvider but this provider is never…
Jerome Cance
  • 8,103
  • 12
  • 53
  • 106
6
votes
1 answer

Django: How to set sessionid cookie for AnonymousUser without using SESSION_SAVE_EVERY_REQUEST

I am attempting to track AnonymousUsers to figure out when they first come to the site, and when they then register to the website. To do so, I created a middleware with the relevant functionality, but this initially assumed that each…
YacineAzmi
  • 873
  • 1
  • 9
  • 10
5
votes
4 answers

Elegant way to store anonymous users with nick names in django?

I have a simple Post model in my django app: class Post(models.Model): category = models.CharField(max_length=10, choices=choices) message = models.CharField(max_length=500) user = models.ForeignKey(User, editable=False) I'd like to…
TheOne
  • 10,819
  • 20
  • 81
  • 119
4
votes
2 answers

Anonymous access to a SharePoint site root

I have configured anonymous access on a SharePoint site for "Lists and Libraries". I then enable anonymous access to the individual lists/libraries as per my requirements. This works great, but I cannot access the root site URL where I expect to…
Jonny
  • 394
  • 7
  • 17
3
votes
1 answer

Spring Security 3.1 and returning anonymous UserDetails

I'm trying to figure out how to have Spring Security return a UserDetails object for anonymous users for this call: SecurityContextHolder.getContext().getAuthentication().getPrincipal() I know that without special configuration, that call will…
ogradyjd
  • 3,971
  • 6
  • 23
  • 30
3
votes
1 answer

Using Firebase Anonymous Auth as only authentication method in app

I have the following mobile app scenario based on a Firebase backend: Two or more mobile app instances communicate with each other through a central service (trusted). The apps are paired by exchanging a shared secret, e.g. through scanning a QR…
3
votes
2 answers

spring security always returning anonymousUser

i have a spring security implementation for the existing spring based application, it always returns anonymous user regardless of what i supply at login page. @Configuration @EnableWebSecurity @EnableGlobalAuthentication public class…
kunzsoni
  • 49
  • 1
  • 2
  • 8
3
votes
0 answers

Give anonymous access to one page while site has Windows authentication

I have already tried for Location tag and allow users = * ... but even then it is prompting for a password for the page.
3
votes
2 answers

Amazon S3 - How do I download objects owned by anonymous user?

I have a sample web page that has allowed anonymous users to upload objects and create folders in my S3 bucket. Unfortunately I had not set any specific bucket policies or ACLs before doing this. Now I have the problem where an anonymous user has…
3
votes
2 answers

How to get aspnet_Users.UserId for an anonymous user in ASP.NET membership?

I am trying to get the aspnet membership UserId field from an anonymous user. I have enabled anonymous identification in web.config : I have also created a profile:
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
1
2 3 4 5