• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

18F / hub / 937 / 1
77%
18f-pages-internal: 78%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 18f-pages-internal
Ran 03 Apr 2015 01:50PM UTC
Files 28
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Apr 2015 01:48PM UTC coverage: 76.58%. Remained the same
2.1.5

push

travis-ci

mbland
Embed access token as Javascript variable via SSI

The motivation for this is to pass the authenticated user's MyUSA access token
through so that Javascript can be used to request Midas data per #211. More
generally, this should allow us to integrate other backend services that
accept MyUSA access tokens. (Care must be taken, of course, to ensure that
tokens are sent only over secure connetions.)

The upstream auth proxy will pass the OAuth `access_token` into the Hub server
via the `X-Forwarded-Access-Token` HTTP header. We then use the Nginx `set`
directive to rewrite this header's value as the `access_token` variable, which
then gets assigned to a Javascript variable via the `#echo` Server-Side
Include directive.

618 of 807 relevant lines covered (76.58%)

2.79 hits per line

Source Files on job 937.1 (2.1.5)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 937
  • Travis Job 937.1
  • 61317cda on github
  • Prev Job for 2.1.5 on embed-access-token (#932.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc