Chore Account server

Check-in [983353d070]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Old pdb hook
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:983353d0704caccebe11e2617a97ca60e0abafeb7d0e16dc537c41d4c2a17148
User & Date: ajv-899-334-8894@vsta.org 2016-11-14 17:35:20
Context
2016-11-17
17:21
Move to firewall-friendly port numbering (can pass a simple range for all external ports). Point at our SSL cert (thanks, letsencrypt!) check-in: 6a294b69d2 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-14
17:35
Old pdb hook check-in: 983353d070 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-11-13
20:09
Bringup, account server check-in: 82fbdb4e98 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to main.py.

1
2
3
4
5
6
7
8
9
10
11
12
...
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
#
# account.py
#	Manage user accounts across chore services
#
import pdb
import sys, os, threading, socket, json
import chore
from get import GET_mixin
from post import POST_mixin

# Extra chars for service names, beyond isalnum()
OkChars = set([' ', '_'])
................................................................................
                (self.magics[resp] != req["magic"]):
            sys.stderr.write("Bad magic from '%s'\n" % (resp,))
            return

        # Check cookie
        if op == "cookie?":
            # Correct format?
            pdb.set_trace()
            tup = chore.authen.parse_cookie(req.get("cookie", "XXX"))
            if tup is None:
                self.reply("?format", req)
                return

            # Ok cookie value?
            user,cookie = tup




<







 







<







1
2
3
4

5
6
7
8
9
10
11
...
237
238
239
240
241
242
243

244
245
246
247
248
249
250
#
# account.py
#	Manage user accounts across chore services
#

import sys, os, threading, socket, json
import chore
from get import GET_mixin
from post import POST_mixin

# Extra chars for service names, beyond isalnum()
OkChars = set([' ', '_'])
................................................................................
                (self.magics[resp] != req["magic"]):
            sys.stderr.write("Bad magic from '%s'\n" % (resp,))
            return

        # Check cookie
        if op == "cookie?":
            # Correct format?

            tup = chore.authen.parse_cookie(req.get("cookie", "XXX"))
            if tup is None:
                self.reply("?format", req)
                return

            # Ok cookie value?
            user,cookie = tup