mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-25 08:21:05 -06:00
a4631b7f3f
See: https://pagure.io/freeipa/issue/8882 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
21 lines
652 B
Python
21 lines
652 B
Python
# Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
|
|
from __future__ import absolute_import
|
|
|
|
import json
|
|
|
|
from ipaserver.custodia.plugin import HTTPConsumer, PluginOption
|
|
from ipaserver.custodia.secrets import Secrets
|
|
|
|
|
|
class Root(HTTPConsumer):
|
|
store = PluginOption('store', None, None)
|
|
|
|
def __init__(self, config, section):
|
|
super(Root, self).__init__(config, section)
|
|
if self.store_name is not None:
|
|
self.add_sub('secrets', Secrets(config, section))
|
|
|
|
def GET(self, request, response):
|
|
msg = json.dumps({'message': "Quis custodiet ipsos custodes?"})
|
|
return msg.encode('utf-8')
|