Firebase A/B testing - Know what group a user is in on device - firebase-analytics

We have an A/B test set up that runs on Firebase. To analyze events we are using Mixpanel instead of Firebase. Assume we have User1 and User2.
User1 gets assigned experiment group A and User2 gets assigned group B. Is there a way one can figure out which group a user has been assigned to and then send that information to Mixpanel as an event?

Related

How do I make it possible that my spring boot application updates the created_by automatically when I have when say adding products to a product table

Dears, I am able to create a rest api that saves, deletes and updates products or asserts and within the asserts entity class I have a created_by field mapped to a database table which I can only update by typing my name every time to show that I am the one who have created it, but however this is not what I want, I have got a rest api that simply asks for my username and password and validate against the users table in the database.
So I want the this userid to continue to linger into the application session as long as the rest api app is running and then when I create new asserts(products) the methods defined for saving those products should automatically save that currently running user_id in memory.
I have no idea how I can accomplish this. Please any ideas.
I have created my entity classes for Asserts, Users and I can perform all CRUD actions on them successfully but the problem is on saving the user automatically without manually saving the user_id everytime an assert(product) is added, deleted, or updated.

Using Auth0 ID to retrieve and update user info from MySQL

I created a ReactJS web app with a “user profile” page where the logged user can save: name, surname, email and address. For the moment, every time I log-in and save the data a new object is created.
I would like each logged user to be linked to a single ID, namely Auth0 one, so that I can always retrieve and update the row of the right user in my MySQL database.
I tried to look for other similar questions and to see the documentation, but it's my first time with authentication and I haven't found anything specific about Auth0,so I apologize if it’s a trivial question or asked several times .

How to design granular permissions (authorization) in NodeJS (express)

I'm trying to implement fine grained / granular permissions on users in my REST API (expressjs / mysql).
My web application contains member groups.
Each member group has a single administrator (user).
I don't think JWT would work here because when claims are stored in a users JWT token, if the administrator of the group changes, then the old user might still have a claim on their token thats invalid.
For example:
user1 becomes administrator of group g1
user1 has token1 which allows admin actions on group g1.
user2 becomes the new administrator of group g1.
user1's token is still valid and contains claims which allows admin actions on group1.
How do I go about implementing a per-object level authorization mechanism in nodejs where a user -> performs action -> on object?
PassportJS handles authentication but im unable to find good information about implementing authorization with the above complexity.
Does it make sense to store the permissions information in a database and query the database and perform authorization validations?

ios/Android targeted push notifications in AIR app

I was wondering if it is possible to have multiple custom push notifications setup in a single AIR App.
What I am trying to do is allow users to setup custom alerts based on information they would like to receive for example say user 1 would like to know when new actions or drama movies are released on DVD, user 2 would like to know when new comedies are released, user 3 would like to know when any new movie is released.
This is a simple example and there are possibly 1000's of options (postcode/zip information).
Thanks
Technically, there's nothing that wouldn't allow you to do this.
The implementation is mostly backend related though, let me just quickly draft a design for that here;
The user's device registers for push notifications at your backend service.
Your service takes the user's id stores in a DB and passes the device token to the corresponding push notification server.
Once the registration is completed, the user selects what items he'd like to get notified of (naturally your backend service has to know this information as well to store it in the DB).
As soon as a new action movie (or whatever kind of information the user registered for) is available, your service looks in the DB what users registered for that kind of movies and sends a message via push.
So a simple database and some server side scripting will get you going.

Find the user's first time login in asp.net membership

I am trying to findout the user's first time login using asp.net membership (mysql) and depending on that I'm displaying some agreements page.
The procedure I follow is:
When a user registers a mail will be sent which is for confirming the email Id.
until this point the user is not authenticated.
After clicking the link provided in email Id, the user's authentication is done by user id present in query string.
Now the user needs to login by credentials. At this point user gets authenticated and I want to show him a legal agreements page with a check box in it.
Solution I tried:
I supposed the last login time will be 0/0/0000 00:00:00 AM but in vain.
It would be great if anyone could suggest me a solution for this.
I also encountered the same problem. the only solution that struck my mind was to check whether LastLoginDate = CreateDate or not. If this criteria is true it means that the user is trying to log in for the first time.
But be careful that you must check it before log-in procedure. (but I should say the I use Ms Sql)
You can also check the number of users haven't logged-in yet.
select LastLoginDate from aspnet_Membership where LastLoginDate = CreateDate order by LastLoginDate ASC