
import cherrypy
import json
import uuid
import time
import hashlib

import modules.external.openid2rp as openid2rp


class OpenIDMixIn (object):

    openid_sessions = list()

    def openid_login(self, provider="", claimed="", **query):
        if provider and provider in self.openid_providers:
            services, url, op_local = openid2rp.discover(