Did I find the right examples for you? yes no

All Samples(182)  |  Call(170)  |  Derive(0)  |  Import(12)

src/p/y/pysaml2-2.0.0/example/idp2_repoze/idp.py   pysaml2(Download)
from saml2.authn_context import UNSPECIFIED
from saml2.authn_context import authn_context_class_ref
from saml2.httputil import Response
from saml2.httputil import NotFound
from saml2.httputil import geturl
    def response(self, binding, http_args):
        if binding == BINDING_HTTP_ARTIFACT:
            resp = Redirect()
        else:
            resp = Response(http_args["data"], headers=http_args["headers"])
        return resp(self.environ, self.start_response)
    headers = []
 
    resp = Response(mako_template="login.mako", template_lookup=LOOKUP,
                    headers=headers)
 
    }
    logger.info("do_authentication argv: %s" % argv)
    return resp(environ, start_response, **argv)
 
 

src/p/y/pysaml2-2.0.0/example/idp2/idp.py   pysaml2(Download)
from saml2.authn_context import authn_context_class_ref
from saml2.extension import pefim
from saml2.httputil import Response
from saml2.httputil import NotFound
from saml2.httputil import geturl
    def response(self, binding, http_args):
        if binding == BINDING_HTTP_ARTIFACT:
            resp = Redirect()
        else:
            resp = Response(http_args["data"], headers=http_args["headers"])
        return resp(self.environ, self.start_response)
    headers = []
 
    resp = Response(mako_template="login.mako", template_lookup=LOOKUP,
                    headers=headers)
 
    }
    logger.info("do_authentication argv: %s" % argv)
    return resp(environ, start_response, **argv)
 
 

src/p/y/pysaml2-2.0.0/example/idp2/service.py   pysaml2(Download)
from saml2 import time_util
 
from saml2.httputil import Response
from saml2.httputil import NotFound
from saml2.httputil import geturl
    def response(self, binding, http_args):
        if binding == BINDING_HTTP_ARTIFACT:
            resp = Redirect()
        else:
            resp = Response(http_args["data"], headers=http_args["headers"])
        return resp(self.environ, self.start_response)
 
 
    resp = Response(mako_template="login.mako",
                    template_lookup=environ["pysaml2.mako.lookup"],
                    headers=headers)
    }
    logger.info("do_authentication argv: %s" % argv)
    return resp(environ, start_response, **argv)
 
 

src/p/y/pysaml2-HEAD/example/idp2_repoze/idp.py   pysaml2(Download)
from saml2.authn_context import UNSPECIFIED
from saml2.authn_context import authn_context_class_ref
from saml2.httputil import Response
from saml2.httputil import NotFound
from saml2.httputil import geturl
    def response(self, binding, http_args):
        if binding == BINDING_HTTP_ARTIFACT:
            resp = Redirect()
        else:
            resp = Response(http_args["data"], headers=http_args["headers"])
        return resp(self.environ, self.start_response)
    headers = []
 
    resp = Response(mako_template="login.mako", template_lookup=LOOKUP,
                    headers=headers)
 
    }
    logger.info("do_authentication argv: %s" % argv)
    return resp(environ, start_response, **argv)
 
 

src/p/y/pysaml2-HEAD/example/idp2/idp.py   pysaml2(Download)
from saml2.authn_context import UNSPECIFIED
from saml2.authn_context import authn_context_class_ref
from saml2.httputil import Response
from saml2.httputil import NotFound
from saml2.httputil import geturl
    def response(self, binding, http_args):
        if binding == BINDING_HTTP_ARTIFACT:
            resp = Redirect()
        else:
            resp = Response(http_args["data"], headers=http_args["headers"])
        return resp(self.environ, self.start_response)
    headers = []
 
    resp = Response(mako_template="login.mako", template_lookup=LOOKUP,
                    headers=headers)
 
    }
    logger.info("do_authentication argv: %s" % argv)
    return resp(environ, start_response, **argv)
 
 

src/p/y/pysaml2-2.0.0/example/sp-wsgi/sp.py   pysaml2(Download)
from saml2.httputil import geturl, make_cookie, parse_cookie
from saml2.httputil import get_post
from saml2.httputil import Response
from saml2.httputil import BadRequest
from saml2.httputil import ServiceError
        text = open(path).read()
        if path.endswith(".ico"):
            resp = Response(text, headers=[('Content-Type', "image/x-icon")])
        elif path.endswith(".html"):
            resp = Response(text, headers=[('Content-Type', 'text/html')])
        elif path.endswith(".txt"):
            resp = Response(text, headers=[('Content-Type', 'text/plain')])
        elif path.endswith(".css"):
            resp = Response(text, headers=[('Content-Type', 'text/css')])

src/p/y/pysaml2-HEAD/example/sp-wsgi/sp.py   pysaml2(Download)
from saml2.httputil import geturl, make_cookie, parse_cookie
from saml2.httputil import get_post
from saml2.httputil import Response
from saml2.httputil import BadRequest
from saml2.httputil import ServiceError
        text = open(path).read()
        if path.endswith(".ico"):
            resp = Response(text, headers=[('Content-Type', "image/x-icon")])
        elif path.endswith(".html"):
            resp = Response(text, headers=[('Content-Type', 'text/html')])
        elif path.endswith(".txt"):
            resp = Response(text, headers=[('Content-Type', 'text/plain')])
        elif path.endswith(".css"):
            resp = Response(text, headers=[('Content-Type', 'text/css')])

src/p/y/pysaml2-2.0.0/example/idp_repoze/idp.py   pysaml2(Download)
from saml2.httputil import Unauthorized, NotFound, BadRequest
from saml2.httputil import ServiceError
from saml2.httputil import Response
from saml2.pack import http_form_post_message
from saml2.saml import AUTHN_PASSWORD
    if not query:
        resp = Unauthorized('Unknown user')
        return resp(environ, start_response)
 
    # base 64 encoded request
    if req is None:
        resp = ServiceError("Failed to parse the SAML request")
        return resp(environ, start_response)
 
    logger.info("parsed OK")
                                       resp_args["destination"]))
            resp = BadRequest("ConsumerURL and return destination mismatch")
            raise resp(environ, start_response)
 
    try:
                                       typ="SAMLResponse")
 
    resp = Response(http_args["data"], headers=http_args["headers"])
    return resp(environ, start_response)
 

src/p/y/pysaml2-2.0.0/example/sp-repoze/sp.py   pysaml2(Download)
import argparse
from saml2 import BINDING_HTTP_REDIRECT, time_util
from saml2.httputil import Response
from saml2.httputil import Unauthorized
from saml2.httputil import NotFound
 
    response.extend("<a href='logout'>Logout</a>")
    resp = Response(response)
    return resp(environ, start_response)
 

src/p/y/pysaml2-HEAD/example/sp-repoze/sp.py   pysaml2(Download)
import argparse
from saml2 import BINDING_HTTP_REDIRECT, time_util
from saml2.httputil import Response
from saml2.httputil import Unauthorized
from saml2.httputil import NotFound
 
    response.extend("<a href='logout'>Logout</a>")
    resp = Response(response)
    return resp(environ, start_response)
 

  1 | 2  Next