Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Authentication, Part 1 #4

Merged
merged 10 commits into from
Aug 25, 2017
Merged

Authentication, Part 1 #4

merged 10 commits into from
Aug 25, 2017

Conversation

jasonrudolph
Copy link
Contributor

@jasonrudolph jasonrudolph commented Aug 24, 2017

This PR adds the initial functionality needed to fetch the GitHub identity for each participant in a portal. I'll plan a follow up PR 🔜 to:

  • Address the TODO items introduced in this PR
  • Incorporate code review feedback

Also update LocalRestGateway::get to support passing query parameters.
@jasonrudolph jasonrudolph changed the title [WIP] Authentication Authentication, Part 1 Aug 25, 2017
@jasonrudolph jasonrudolph merged commit 9a918ef into master Aug 25, 2017
@jasonrudolph jasonrudolph deleted the authentication branch August 25, 2017 20:10
const error = JSON.parse(e.error)
const description = (error.message != null) ? error.message : e.error
const reason = `GitHub API responded with ${e.statusCode}: ${description}`
return Promise.reject(reason)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this function is async you could also rethrow here. I guess the semantics are identical but I was a bit confused by the return at first since async is an abstraction over promises, so we're sort of mixing two levels of abstraction by explicitly returning one.

@nathansobo
Copy link
Contributor

Looks pretty!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants