dadi / passport

A library for generating access tokens to authenticate with DADI platform components
7 stars 3 forks source link

Create MongoDB wallet #3

Open eduardoboucas opened 8 years ago

eduardoboucas commented 8 years ago

This might be useful for people that do not wish to store their tokens on a flat file in local storage. For example, a service that runs on multiple servers might wish to use the same bearer token across all instances, so they could all use a shared token wallet.

I imagine this being a massive overkill for the majority of use cases (after all, a round-trip to a remote database might be as expensive as requesting a new bearer token every time), but I wanted to discuss the idea and explore different token storage solutions, to see if people have a need for them.

josephdenne commented 8 years ago

Can you provide a view as to the benefit of this request please?

eduardoboucas commented 8 years ago

Updated.

(Sorry, I did write a description initially but never pressed the button :sweat_smile:)

josephdenne commented 8 years ago

Okay, that makes sense. Do you think this should be a stand alone MongoDB implementation or could this be integrated with a DADI API endpoint?