filter: fix json and use new mandaye option

This commit is contained in:
Jérôme Schneider 2014-11-04 11:14:16 +01:00
parent 5f888ebd68
commit 6ecd572fef
1 changed files with 1 additions and 6 deletions

View File

@ -5,7 +5,6 @@ import json
import re
import urllib
from importlib import import_module
from urlparse import parse_qs
from mandaye import config
@ -85,11 +84,7 @@ def json_response(env, values, request, response):
headers = HTTPHeader({'Content-Type': ['application/json']})
target = '%s/EXPLOITATION/DEFAULT/Ermes/Services/ILSClient.svc/RetrieveAccount' % \
env['target'].geturl()
auth_type = env['mandaye.config']['auth_type']
mapper_name = env['mandaye.config']['mapper']
Auth = import_module(config.authentifications[auth_type])
mapper = import_module(config.mappers[mapper_name])
auth = Auth(env, mapper)
auth = env['mandaye.auth']
qs = parse_qs(env['QUERY_STRING'])
if qs.has_key('nameid'):