Skip to content

Conversation

@derdeka
Copy link
Contributor

@derdeka derdeka commented Feb 25, 2020

When implementing token systems other then jwt there is a need to revoke a token. I also discovered that there is a need to access the UserProfile of the current user to validate tokens in some token systems.

Example usecases:

Related to #4573.

With this PR I'm suggesting to change the TokenService interface.
This is a BREAKING CHANGE.

WDYT?

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

👉 Check out how to submit a PR 👈

@derdeka derdeka added developer-experience Issues affecting ease of use and overall experience of LB users breaking-change community-contribution Authentication labels Feb 25, 2020
@derdeka derdeka force-pushed the feat/authentication/extend-tokenservice branch from 650742e to 1c81e85 Compare March 2, 2020 15:59
@derdeka derdeka force-pushed the feat/authentication/extend-tokenservice branch from 80fa72e to 0c68cab Compare March 2, 2020 16:09
@derdeka derdeka requested a review from raymondfeng March 2, 2020 21:59
@derdeka
Copy link
Contributor Author

derdeka commented Mar 6, 2020

@strongloop/loopback-maintainers PTAL

Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derdeka Appreciate your contribution! LGTM

@derdeka
Copy link
Contributor Author

derdeka commented Mar 11, 2020

@raymondfeng May i ask for your approvement again to get this landed?

@derdeka derdeka merged commit d8e9fbb into master Mar 11, 2020
@derdeka derdeka deleted the feat/authentication/extend-tokenservice branch March 11, 2020 20:31
@agnes512
Copy link
Contributor

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Authentication developer-experience Issues affecting ease of use and overall experience of LB users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants