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

strongloop / loopback / 5633
89%
master: 90%

Build:
Build:
LAST BUILD BRANCH: chore/update-lts
DEFAULT BRANCH: master
Ran 06 Apr 2017 11:17AM UTC
Jobs 3
Files 35
Run time 2min
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
5633

push

travis-ci

bajtos
Add support for scoped access tokens

Define a new property `AccessToken.scopes` to contain the list of
scopes granted to this access token.

Define a new remote method metadata `accessScopes` to contain a list
of scope name required by this method.

Define a special built-in scope name "DEFAULT" that's used when
a method/token does not provide any scopes. This allows access
tokens to grant access to both the default scope and any additional
custom scopes at the same time.

Modify the authorization algorithm to ensure that at least one
of the scopes required by a remote method is allowed by the scopes
granted to the requesting access token.

The "DEFAULT" scope preserve backwards compatibility because existing
remote methods with no `accessScopes` can be accessed by (existing)
access tokens with no `scopes` defined.

Impact on existing applications:

 - Database schema must be updated after upgrading the loopback version

 - If the application was already using a custom `AccessToken.scopes`
   property with a type different from an array, then the relevant code
   must be updated to work with the new type "array of strings".

1711 of 2162 branches covered (79.14%)

19 of 19 new or added lines in 2 files covered. (100.0%)

3135 of 3509 relevant lines covered (89.34%)

6130.19 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
lib/access-context.js

Uncovered Existing Lines

Lines Coverage ∆ File
7
100.0
common/models/acl.js
10
100.0
lib/model.js
35
100.0
lib/access-context.js
Jobs
ID Job ID Ran Files Coverage
1 5633.1 06 Apr 2017 11:19AM UTC 0
89.34
Travis Job 5633.1
2 5633.2 06 Apr 2017 11:18AM UTC 0
89.34
Travis Job 5633.2
3 5633.3 06 Apr 2017 11:17AM UTC 0
89.34
Travis Job 5633.3
Source Files on build 5633
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5633
  • 5c04712e on github
  • Prev Build on feature/access-token-scopes (#5623)
  • Next Build on feature/access-token-scopes (#5635)
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