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

sparkphp / auth / 44
94%
master: 99%

Build:
Build:
LAST BUILD BRANCH: hotfix/exceptions
DEFAULT BRANCH: master
Ran 07 Oct 2015 09:36PM UTC
Jobs 1
Files 21
Run time 1s
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
44

push

travis-ci

elazar
Completely rearchitect how this library works

And fix a few small things discovered in the process.

Changes
* Remove AbstractAuthenticator, because it involves too many
  concerns -- see #1 for related discussion
* Remove permission-related code, because it appears to be unused
  and relates to authorization rather than authentication
* Add the Token and Credentials value object classes to encapsulate
  authentication token metadata and user credentials respectively
* Add ExtractorInterface, HeaderExtractor, and QueryExtractor under
  the Token subnamespace for extracting authentication token strings
  from ServerRequestInterface instances
* Add ExtractorInterface and JsonExtractor under the Credentials
  subnamespace for extracting user credentials from
  ServerRequestInterface instances
* Add AdapterInterface to represent authentication adapters for
  validating authentication tokens and user credentials
* Add UnauthorizedException for when authentication fails due to
  the request lacking an authentication token and user credentials
* Add RequestFilterInterface for determining whether authentication
  should be applied to a request
* Modify AuthHandler to use authentication adapter, token extractor,
  user credentials extractor, request filter, and UnauthorizedException
  instances where appropriate
* Remove FakeAuthenticator from test suite, because mocking of
  AdapterInterface in the AuthHandlerTest suite should cover the
  same use cases
* Modify the test suite to use Phake for mocking
* Add examples to README

Fixes
* Tweak Composer dependency versions to use the carot operator
* Make AuthHandler explicitly implement MiddlewareInterface
* Modify getStatusCode() return values for AuthException and
  InvalidException to be appropriate for their use cases

122 of 127 relevant lines covered (96.06%)

2.94 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
100.0
Jwt/LcobucciSignerFactory.php
Jobs
ID Job ID Ran Files Coverage
1 44.1 07 Oct 2015 09:36PM UTC 0
96.06
Travis Job 44.1
Source Files on build 44
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #44
  • 638d7b9c on github
  • Prev Build on feature/refactor (#43)
  • Next Build on feature/refactor (#45)
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