first cherrypy skeleton for the onelab sso
[infrastructure.git] / onelab-sso / OnelabSingleSignOn.py
diff --git a/onelab-sso/OnelabSingleSignOn.py b/onelab-sso/OnelabSingleSignOn.py
new file mode 100644 (file)
index 0000000..64b916c
--- /dev/null
@@ -0,0 +1,17 @@
+import cherrypy
+
+interface_version='0.0'
+
+class OnelabSingleSignOn (cherrypy._cptools.XMLRPCController):
+    def version (self):
+        return interface_version
+    version.exposed=True
+
+    # basically this goes at several places to see if this user is known
+    # first sequential implementation should be ok for our needs
+    # given that we'd have only 2 places to check
+    # details of the return structure to be specified
+    def AuthCheck (self, login, password):
+        return { 'alt': "not implemented yet", }
+    AuthCheck.exposed=True
+