nytimes/library

Add site access options for increased viewing permission granularity

开放

#7 创建于 2019年3月19日

 (0 条评论) (1 个反应) (0 位负责人)JavaScript (148 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (1,180 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南