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

sparkphp / auth
94%
master: 99%

Build:
Build:
LAST BUILD BRANCH: hotfix/exceptions
DEFAULT BRANCH: master
Repo Added 15 Jul 2015 08:29PM UTC
Files 20
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

LAST BUILD ON BRANCH feature/refactor
branch: feature/refactor
CHANGE BRANCH
x
Reset
  • feature/refactor
  • 0.1.0
  • 0.2.0
  • 0.2.1
  • 0.2.2
  • 0.3.0
  • 0.3.1
  • exception-handling
  • feature/jwt-token-data
  • feature/parsed-body-extractor
  • feature/relocate-docs
  • hotfix/exceptions
  • hotfix/readme-badges
  • hotfix/remove-adr-dependency
  • hotfix/remove-phpunit-app-path
  • master
  • request-token
  • token-attribute

pending completion
50

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

132 of 140 relevant lines covered (94.29%)

3.01 hits per line

Relevant lines Covered
Build:
Build:
140 RELEVANT LINES 132 COVERED LINES
3.01 HITS PER LINE
Source Files on feature/refactor
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
50 feature/refactor 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... push 15 Oct 2015 06:02PM UTC elazar travis-ci pending completion  
49 feature/refactor Update README push 13 Oct 2015 04:04PM UTC elazar travis-ci pending completion  
48 feature/refactor Removed LcobucciSignerFactory push 13 Oct 2015 03:57PM UTC elazar travis-ci pending completion  
47 feature/refactor 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... push 12 Oct 2015 07:25PM UTC elazar travis-ci pending completion  
46 feature/refactor 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... push 12 Oct 2015 07:23PM UTC elazar travis-ci pending completion  
45 feature/refactor 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... push 12 Oct 2015 06:15PM UTC elazar travis-ci pending completion  
44 feature/refactor 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... push 07 Oct 2015 09:36PM UTC elazar travis-ci pending completion  
43 feature/refactor 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... push 07 Oct 2015 08:23PM UTC elazar travis-ci pending completion  
42 feature/refactor 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... push 07 Oct 2015 07:51PM UTC elazar travis-ci pending completion  
41 feature/refactor 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... push 07 Oct 2015 07:43PM UTC elazar travis-ci pending completion  
See All Builds (82)
  • Repo on GitHub
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

© 2025 Coveralls, Inc