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

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

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: 18f-pages-internal
Ran 03 Apr 2015 01:50PM UTC
Jobs 1
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

pending completion
937

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

Jobs
ID Job ID Ran Files Coverage
1 937.1 (2.1.5) 03 Apr 2015 01:50PM UTC 0
76.58
Travis Job 937.1
Source Files on build 937
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #937
  • 61317cda on github
  • Prev Build on embed-access-token (#932)
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