blob: 3c31bf5077d73ac258f4a96bb6b4f5e95802f184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 'import credential-management.support.fedcm.keys' does not work.
import importlib
keys = importlib.import_module("credential-management.support.fedcm.keys")
def main(request, response):
client_metadata_url = "/credential-management/support/fedcm/client_metadata.py"
counter = request.server.stash.take(keys.CLIENT_METADATA_COUNTER_KEY,
client_metadata_url)
try:
counter = counter.decode()
except (UnicodeDecodeError, AttributeError):
pass
return counter
|