fabric8-services / fabric8-auth

Identity and Access Management for fabric8 services
https://auth.openshift.io/api/status
Apache License 2.0
14 stars 26 forks source link

Add token validation check to goa middleware #773

Closed sbryzak closed 5 years ago

sbryzak commented 5 years ago

This PR adds a validation check to the goa middleware to ensure that user access tokens are currently valid.

codecov[bot] commented 5 years ago

Codecov Report

Merging #773 into master will increase coverage by 0.02%. The diff coverage is 79.59%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #773      +/-   ##
=========================================
+ Coverage   78.77%   78.8%   +0.02%     
=========================================
  Files          95      95              
  Lines        8722    8756      +34     
=========================================
+ Hits         6871    6900      +29     
- Misses       1363    1365       +2     
- Partials      488     491       +3
Impacted Files Coverage Δ
authorization/token/token.go 100% <100%> (ø) :arrow_up:
authorization/token/service/token_service.go 73.27% <77.14%> (+0.71%) :arrow_up:
goamiddleware/jwt_token_context.go 85.71% <80%> (+4.76%) :arrow_up:
authorization/token/repository/token.go 71.05% <0%> (-1.32%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0afb1b2...6df895b. Read the comment docs.