Open ojhaujjwal opened 10 years ago
ping @Danielss89 , @Ocramius
Yes, I agree here. This should probably be handled by the auth storage directly on write (if the storage value changes). It may be trivial to write a wrapper around a generic storage to do that.
I've run into this with ZfcUser 1.2.x when trying to integrate with Apigility. Here's how I worked around it (module coming soon)
Happened to be looking into this for something else. We could definitely make it easier to support this use-case.
Authentication adapter should not know anything about authentication storage. See ZfcUser/Authentication/Adapter/Db.php#L111.
In restful applications, it is common these days not to use session but to use access tokens.