nytimes/library

Add site access options for increased viewing permission granularity

Offen

#7 geöffnet am 19.03.2019

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (148 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (1.180 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 8m) (1 gemergte PR in 30 T)

Beschreibung

Problem Description

Currently, Library utilizes domains to control who can access the site. However, this prohibits access on a person-by-person basis and increases the amount of maintenance needed when different aliases of the same domain are often used (ex: student@u.northwestern.edu versus student@northwestern.edu).

Feature

To address these issues, Library should support:

  • individual email address access via an environment variable and OAuth configuration
  • the use of regex for domain matching

Additional Information

Library accesses a user's email domain via the user's passport session and checks it against the APPROVED_DOMAINS config var.

Contributor Guide