Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace keycloak-connect protect method with jsonwebtoken.verify #130

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

TimCsaky
Copy link
Contributor

Description

ticket: https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3500

This PR will need regression testing before merging

  • We can use the verify() method that comes with the jsonwebtoken library to verify the client's auth token is valid.
  • An invalid token will now return a Problem instance
  • Updated API spec

Types of changes

Code simplification

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the OpenAPI 3.0 v*.api-spec.yaml documentation (if appropriate)
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

Coverage Report

Totals Coverage
Statements: 96.61% ( 769 / 796 )
Methods: 98.08% ( 102 / 104 )
Lines: 97.95% ( 429 / 438 )
Branches: 93.7% ( 238 / 254 )

@TimCsaky TimCsaky requested review from norrisng-bc and removed request for wilwong89 and kyle1morel April 16, 2024 00:02
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
app/src/routes/v1.js Dismissed Show dismissed Hide dismissed
@TimCsaky TimCsaky force-pushed the chore/remove-keyclaok-connect branch from d99be42 to b1fa2a1 Compare April 16, 2024 00:10
We can use the verify() method that comes with the jsonwebtoken library
to verify the client's auth token is valid.
An invalid token will now return a Problem instance
Updated API spec
@TimCsaky TimCsaky force-pushed the chore/remove-keyclaok-connect branch from b1fa2a1 to c8559dc Compare April 16, 2024 21:58
@jatindersingh93 jatindersingh93 merged commit 28a8cb1 into master Apr 16, 2024
15 of 16 checks passed
@TimCsaky TimCsaky deleted the chore/remove-keyclaok-connect branch April 17, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants