Skip to content

Commit

Permalink
Merge 2038fea into c5193fb
Browse files Browse the repository at this point in the history
  • Loading branch information
frankverhoeven committed Dec 7, 2018
2 parents c5193fb + 2038fea commit 83a1c3a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: clover.xml
json_path: coveralls-upload.json
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@ matrix:

install:
- composer install --prefer-source
- composer require php-coveralls/php-coveralls

before_script:
- composer self-update
- composer install --prefer-source
- vendor/bin/phpunit --colors=always --coverage-clover clover.xml

script:
- vendor/bin/phpunit
- vendor/bin/phpcs

after_script:
- vendor/bin/php-coveralls -v
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Guzzle Authorization Middleware
[![Build Status](https://travis-ci.org/MyOnlineStore/guzzle-authorization-middleware.svg?branch=master)](https://travis-ci.org/MyOnlineStore/guzzle-authorization-middleware)
[![Coverage Status](https://coveralls.io/repos/github/MyOnlineStore/guzzle-authorization-middleware/badge.svg?branch=master)](https://coveralls.io/github/MyOnlineStore/guzzle-authorization-middleware?branch=master)

Middleware that adds an Authorization bearer header to the request. The bearer token will be provided
via a `TokenManagerInterface` implementation.
Expand Down
2 changes: 2 additions & 0 deletions src/TokenManager/Jwt.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public function __construct(
}

/**
* @return Token
*
* @throws \InvalidArgumentException If the token is not a valid JWT
* @throws \OutOfBoundsException If the token does not have an exp claim
*/
Expand Down

0 comments on commit 83a1c3a

Please sign in to comment.