Closed frobichaud closed 8 years ago
The var Configuration::CLIENT_KEY maps to 'client' but in our case it should be 'HTTP_CLIENT'
resource.tokens.delete returns nil:
resource.tokens.delete(env[Configuration::CLIENT_KEY])
While this succeeds:
resource.tokens.delete(env['HTTP_CLIENT])
There's also a bug in the Middleware
responses_with_auth_headers
Should not be called on /sign_out. It creates a new token on the resource.
I'm breaking this issue up into several issues, I think that this comment is a true bug and therefore this issue name was changed to reflect that.
The var Configuration::CLIENT_KEY maps to 'client' but in our case it should be 'HTTP_CLIENT'
resource.tokens.delete returns nil:
While this succeeds: