adobe / adobe/da-live

Auth App

Open
#278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
34
Forks
71
Avg merge
2d 11h
Merged PRs (30d)
29

Description

## Context
We need to associate the current user to a group so that we can check what permissions they have.

We cannot use emails as these can be de-coupled from our IDP.

We want to have this data as human readable as possible so it can be either managed by sheet or the tooling around management can be very simple.

### Data
1. A DA Org will have an IMS Org property (812B47145DC5A2450A495C14@AdobeOrg)
2. An admin will add the associated groups to a `group` sheet.
1. Human readable group name (DA Admins)
2. Ident (837516886)
3. An admin will add paths + group names to an `auth` sheet.
1. `/* | DA Admins, aec-authors | write`
2. `/products/photoshop | event-authors | wrtie`

### Auth flow
On first authenticated request, we match the users groups to the sheet groups for the DA org. This keeps the list of groups we store with their user to a minimum. There's a lot of random groups in an org and we don't want the session data to be noisy.

We then take their groups and match longest path + most permissive group of the user.

## MVP
1. Get the organization for the provided auth token (currently signed in user).
1. Provide a picker for the groups associated with the current auth token.
1. Add the selected groups to the group sheet.

## What this gets us
1. We have an easy way to map human readable groups to their ident number.

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by tracing the current handling of authenticated requests and the existing sheet-management flow, then verify the MVP against organization lookup, group selection, and adding selected groups to the group sheet.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.