Skip to content

OpenTree user accounts and GitHub

Karen Cranston edited this page Feb 5, 2016 · 18 revisions

Open Tree of Life uses GitHub for user authentication. This page explains how that works, and why we do user accounts this way.

Creating a GitHub account

Create your account at the GitHub signup page. The free plan gives you everything you will need for interaction with OpenTree. Choose you username carefully - you can change it later, but not all account history and links will follow a new username.

Adding an email address to your GitHub profile

In order to associate your OpenTree curation activity with your GitHub account (so that it shows up on your GitHub and OpenTree profiles), you need a public email address. On your profile page, click the Edit profile button near the top right of the page.

edit profile

The sidebar on the edit page has several different options:

profile sidebar

The two of interest here are Profile and Emails. Select Emails and add an email address for your account. Click the green Update profile button when you are done.

add email

You can make your email private or public. If your email address is not public, you can still log in and curate studies. However, your OpenTree curation activity will not be associated with your account. (Note that other types of contributions, like feedback and GitHub issues will be associated whether your email is public or private). If you want more details about the requirement for an email address, you can see this GitHub help page.

Adding profile information

Your OpenTree profile page can show your name, affiliation, website, and email address if you have these fields set on your GitHub profile. For example, compare kcranston's GitHub profile and her OpenTree profile page:

github_public_profile

Her OpenTree profile lists her affiliation, name, and profile picture but does not show her email address, which is private.

opentree_profile

To control what appears on your OpenTree profile page, edit your GitHub profile (there is an Edit button on your OpenTree profile page that will open your GitHub profile, as shown in the image above).

Authorizing OpenTree to access your GitHub account

The first time you log in to OpenTree using your GitHub account, you will be asked to authorize OpenTree to use your GitHub account. OpenTree will only be able to see your public profile data, and will not see any private data or your password. If you want to revoke this access at a later date, you can do so using the Applications option on your GitHub profile.

Why do we use GitHub accounts?

Two main reasons. First, OpenTree stores our tree database under version control on GitHub (see this publication and this repository for more info). Associating our user accounts with GitHub means that we can easily capture the full history of edits to the database - who curated what trees, what changes they made, and when.

Second, creating and maintaining web site infrastructure, such as user registration, secure login, and profile management, is tricky and it's easy to get it wrong. By letting GitHub take care of chores for us, we are letting it do things that it can do better than we can, and we save precious time that can be spent instead on work that promotes the science.

Clone this wiki locally