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

ory / fosite / 1457
71%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2020 10:57AM UTC
Jobs 1
Files 67
Run time 8s
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

25 Mar 2020 10:53AM UTC coverage: 86.777% (+0.2%) from 86.529%
1457

push

travis-ci

web-flow
fix: handle concurrent  transactional errors in the refresh token grant handler (#402)

This commit provides the functionality required to address https://github.com/ory/hydra/issues/1719 & https://github.com/ory/hydra/issues/1735 by adding error checking to the RefreshTokenGrantHandler's PopulateTokenEndpointResponse method so it can deal with errors due to concurrent access. This will allow the authorization server to render a better error to the user-agent.

No longer returns fosite.ErrServerError in the event the storage. Instead a wrapped fosite.ErrNotFound is returned when fetching the refresh token fails due to it no longer being present. This scenario is caused when the user sends two or more request to refresh using the same token and one request gets into the handler just after the prior request finished and successfully committed its transaction.

Adds unit test coverage for transaction error handling logic added to the RefreshTokenGrantHandler's PopulateTokenEndpointResponse method

24 of 24 new or added lines in 1 file covered. (100.0%)

3032 of 3494 relevant lines covered (86.78%)

107.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1457.1 (GO111MODULE=on) 25 Mar 2020 10:57AM UTC 0
86.78
Travis Job 1457.1
Source Files on build 1457
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1457
  • b17190b4 on github
  • Prev Build on master (#1450)
  • Next Build on master (#1459)
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