nickredmark / ooth

User identity/authentication/accounts management microservice for node.js
https://nmaro.github.io/ooth/
MIT License
605 stars 65 forks source link

Add ability to transform user from strategy plugin #46

Closed gferreri closed 5 years ago

gferreri commented 6 years ago

This adds a feature to be able to transform a user from a plugin strategy. This is useful in the case that you want to return additional information about the user that is not contained within the backend user store.

For instance, in my application I have an existing service that contains a list of teams that the user belongs to. I want to be able to fetch those teams each time the user logs in, and not persist them in the users database.