Closed tedder closed 10 years ago
@tedder I believe your approach with this plugin is completely wrong. Have you read this documentation? Specially the diagram, and its explanation.
First of all, this is a REST plugin. So the client must be a REST client. And a browser is not a REST client.
Secondly, if you want to use this plugin authentication endpoint, you need to read its documentation. Basically, you need to send a POST
request to /api/login
, and you will receive a JSON response containing an authentication token.
Finally, you must send that token as an HTTP header to your REST endpoints, and this plugin will take care of retrieving the token and finding the user details on Memcached.
j_spring_security_check
is plain old Spring Security Core. It's not RESTful, but rather the contrary. It's stateful, HTTP session-based, and has nothing to do with the goals of this plugin.
So first of all, reconsider what are you doing and what are your needs, because my impression (and please correct me if I'm wrong) is that you don't need this plugin.
Please, read carefully the documentation. I made a huge effort writing it, and it should explain this basic concepts. And if not, please let me know, I'm more than happy to improve it if necessary.
Hope this helps. Alvaro.
TLDR version: memcached connects but never gets written to.
I'm running
1.3.0.RC3
.I'm using the following relevant configuration:
I can see the memcached connection being opened on startup- here's a snippet:
Since I'm running memcached on my dev box with -vvvv, I can see the connection being created too:
Here's the filter chain that is created on startup:
Finally, login is successful but does NOT contact memcached in any way.