Get the currect api_key used in a request

frode-meling

Jan 31st, 2019 12:04 PM

Any1 know how we can get which api_key the client side has used? I probabaly need to store it during /api/token call.. But Where can I put it?

Reason I want it is to be able to track, which key posted what data. So given a user uses 2 APIkeys, we can differntiate what was created by each of them.

/Frode

nick-jensen

Feb 4th, 2019 02:03 PM

You would need to setup a Middleware for this.

Check out this post: https://devdojo.com/forums/discussion/wave/wave-api-workaround