from ipsilon.util.plugin import PluginInstaller, PluginLoader
from ipsilon.util.plugin import PluginObject, PluginConfig
from ipsilon.util.page import Page
+from ipsilon.util.page import admin_protect
from ipsilon.rest.common import RestPage
import cherrypy
self.plugin_name = config.name
self.cfg = config
+ @admin_protect
def GET(self, *args, **kwargs):
raise cherrypy.HTTPError(501)
+ @admin_protect
def POST(self, *args, **kwargs):
raise cherrypy.HTTPError(501)
+ @admin_protect
def DELETE(self, *args, **kwargs):
raise cherrypy.HTTPError(501)
+ @admin_protect
def PUT(self, *args, **kwargs):
raise cherrypy.HTTPError(501)
from ipsilon.rest.common import rest_error, jsonout
from ipsilon.providers.saml2.provider import ServiceProviderCreator
from ipsilon.providers.saml2.provider import InvalidProviderId
+from ipsilon.util.page import admin_protect
from lasso import ServerAddProviderFailedError
return dict(result=results)
@jsonout
+ @admin_protect
def GET(self, *args, **kwargs):
return self._get_sp(*args, **kwargs)
@jsonout
+ @admin_protect
def POST(self, *args, **kwargs):
cherrypy.response.status = 201