def redirect(self, provider, authType, authUrl): if authType == 'openid': redirectUrl = OpenIdHelper.get_auth_redirect_url(authUrl) else: raise NotImplementedError() raise cherrypy.HTTPRedirect(redirectUrl)