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

ory / fosite / 1009 / 1
71%
master: 71%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2018 10:03AM UTC
Files 62
Run time 2s
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

30 Apr 2018 09:59AM UTC coverage: 85.406% (-0.09%) from 85.492%
DEP_VERSION="0.3.2"

push

travis-ci

web-flow
oauth2: Introspection should return token type (#265)

Closes #264

This patch allows the introspection handler to return the token type (e.g. `access_token`, `refresh_token`) of the
introspected token. To achieve that, some breaking API changes have been introduced:

* `OAuth2.IntrospectToken(ctx context.Context, token string, tokenType TokenType, session Session, scope ...string) (AccessRequester, error)` is now `OAuth2.IntrospectToken(ctx context.Context, token string, tokenType TokenType, session Session, scope ...string) (TokenType, AccessRequester, error)`.
* `TokenIntrospector.IntrospectToken(ctx context.Context, token string, tokenType TokenType, accessRequest AccessRequester, scopes []string) (error)` is now `TokenIntrospector.IntrospectToken(ctx context.Context, token string, tokenType TokenType, accessRequest AccessRequester, scopes []string) (TokenType, error)`.

This patch also resolves a misconfigured json key in the `IntrospectionResponse` struct. `AccessRequester AccessRequester json:",extra"` is now properly declared as `AccessRequester AccessRequester json:"extra"`.

2259 of 2645 relevant lines covered (85.41%)

139.26 hits per line

Source Files on job 1009.1 (DEP_VERSION="0.3.2")
  • Tree
  • List 0
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 994
  • Travis Job 1009.1
  • 2bf9b6c4 on github
  • Prev Job for DEP_VERSION="0.3.2" on master (#1005.1)
  • Next Job for DEP_VERSION="0.3.2" on master (#1013.1)
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