Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Proposal: delay requesting the public_repo scope #18

Closed

Description

@abbycabs

Currently we request the public_repo scope with GitHub authentication upon log in. This helps us encourage users to fork code -- remixing is an important skills for learning and building tools helping science on the web. We don't want to loose this functionality, especially since we'll be using this for our upcoming community blogging system.

Problem:
public_scope is an admittedly permissive scope, giving us write access to all repos the users has access to, including organization repos. We don't actually need or want this -- neither does some of our community: #11

Proposal:
The best compromise I can think of now, is to request no scope upon log in. Then, when a user wants to take part in Collaborate, request public_scope. This would require rewriting some of our authentication code and we'd have less smooth user process around Collaborate. We'll also have to consider how we'll work with tiered scopes with the new blogging system - which will be built around forking.

My biggest concern with this approach is the fact that our future plans are tied around forking and encouraging more interaction with code.

Activity

  1. wking commented on Feb 23, 2015

    @wking

    On Mon, Feb 23, 2015 at 08:59:30AM -0800, Abigail Cabunoc wrote:

    The best compromise I can think of now, is to request no scope
    upon log in. Then, when a user wants to take part in Collaborate,
    request public_scope.

    The first time you want to fork a repo for someone, can you:

    1. Check to see if that user has an existing fork of the repository in
      question. If they do, there's no need to do anything else.

    2. If they don't already have a fork, prompt with:

      We'd like to fork $REPO for you automatically. Granting us the
      ‘public_scope’ permission will allow us to fork repositories on
      on your behalf going forward. Alternatively, you can create any
      required forks manually.

    Then users who aren't comfortable with the broad permission can fork
    by hand.

  2. abbycabs commented on Feb 23, 2015

    @abbycabs
    ContributorAuthor

    @wking - that sounds like a good workflow

  3. abbycabs commented on Jun 30, 2016

    @abbycabs
    ContributorAuthor

    from the old site, closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions