mozilla-iam / mozilla-iam/auth0-deploy

How does authoritativeGroups work on first use and first RP login?

Open
#210 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
21
Avg merge
17h 49m
Merged PRs (30d)
5

Description

  1. How will a user have a authoritativeGroups list added to their user.app_metadata object? It looks like in the absence of the list no check is done but I don't see how the list is created and added to the user's user.app_metadata in the first place.
  2. Assuming the authoritativeGroups list exists in the user's user.app_metadata object, how are new RP objects added to the list? It looks like lastUsed values are updated if the RP already exists in authoritativeGroups but I don't see how, when a user first logs into an RP which has a expire_access_when_unused_after value, what creates a new object for that RP in the user's authoritativeGroups list.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with rules/AccessRules.js, especially the linked logic around lines 29-40, and trace where user.app_metadata is initialized or updated during first use and RP login. Check the repository's other Auth0 rules or hosted-page entry points for related metadata handling; done means documenting the lifecycle of authoritativeGroups and its RP entries.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.