implement python server for test srp authentication
- instantiate a small server for the testcase (we can use something like the server that's used in eip/tests/test_checks.py, or use some higher level http server for tests).
-
mimick the api calls that we are currently making to the ruby leap_webapp: SRPAuth.get_init_data: ...does a POST to /sessions with {'login': username, 'A', A) 2.1 => SRP_AUTH_SERVER should return with 'salt' and B (using python lib).
( One a first step we can make the test work by hardcoding good auth strings sniffed from a valid exchange with the ruby server ) SRPAuth.authenticate +176 ...does a PUT to /sessions/username with data={'client_auth' = M) 2.2 => returns M2 token. (this is HAMK) -
For a valid user, we can assume something harcoded in the test server (testuser, testpass)
(from redmine: created on 2012-10-22, closed on 2013-04-02, relates #662 (closed), relates #1000 (closed), blocks #2117 (closed), blocks #2119 (closed), precedes #802 (closed))