Did I find the right examples for you? yes no

All Samples(79)  |  Call(65)  |  Derive(0)  |  Import(14)
handles restrictions on assertions 

src/p/y/pysaml2-2.0.0/example/sp-wsgi/service_conf.py   pysaml2(Download)
from saml2.assertion import Policy
 
PORT = 8087
HTTPS = False
 
# Which groups of entity categories to use
POLICY = Policy(
    {

src/p/y/pysaml2-HEAD/example/sp-wsgi/service_conf.py   pysaml2(Download)
from saml2.assertion import Policy
 
HOST = '127.0.0.1'
PORT = 8087
HTTPS = False
 
# Which groups of entity categories to use
POLICY = Policy(
    {

src/p/y/pysaml2-2.0.0/src/saml2/config.py   pysaml2(Download)
 
from saml2.attribute_converter import ac_factory
from saml2.assertion import Policy
from saml2.mdstore import MetadataStore
from saml2.virtual_org import VirtualOrg
    def load_complex(self, cnf, typ="", metadata_construction=False):
        try:
            self.setattr(typ, "policy", Policy(cnf["policy"]))
        except KeyError:
            pass

src/p/y/pysaml2-HEAD/src/saml2/config.py   pysaml2(Download)
 
from saml2.attribute_converter import ac_factory
from saml2.assertion import Policy
from saml2.mdstore import MetadataStore
from saml2.virtual_org import VirtualOrg
    def load_complex(self, cnf, typ="", metadata_construction=False):
        try:
            self.setattr(typ, "policy", Policy(cnf["policy"]))
        except KeyError:
            pass

src/p/y/pysaml2-2.0.0/src/saml2/server.py   pysaml2(Download)
 
from saml2.assertion import Assertion
from saml2.assertion import Policy
from saml2.assertion import restriction_from_attribute_spec
from saml2.assertion import filter_attribute_value_assertions
        ast = Assertion(identity)
        if policy is None:
            policy = Policy()
        try:
            ast.apply_policy(sp_entity_id, policy, self.metadata)
                ast.apply_policy(sp_entity_id, policy, self.metadata)
            else:
                policy = Policy()
 
            if attributes:

src/p/y/pysaml2-HEAD/src/saml2/server.py   pysaml2(Download)
 
from saml2.assertion import Assertion
from saml2.assertion import Policy
from saml2.assertion import restriction_from_attribute_spec
from saml2.assertion import filter_attribute_value_assertions
        ast.acs = self.config.getattr("attribute_converters", "idp")
        if policy is None:
            policy = Policy()
        try:
            ast.apply_policy(sp_entity_id, policy, self.metadata)
                ast.apply_policy(sp_entity_id, policy, self.metadata)
            else:
                policy = Policy()
 
            if attributes:

src/p/y/pysaml2-2.0.0/tests/test_20_assertion.py   pysaml2(Download)
from saml2.saml import NameID
from saml2.saml import NAMEID_FORMAT_TRANSIENT
from saml2.assertion import Policy
from saml2.assertion import Assertion
from saml2.assertion import filter_on_attributes
        }}
 
    r = Policy(conf)
    assert r is not None
 
        }}
 
    r = Policy(conf)
    assert r is not None
 
        }}
 
    r = Policy(conf)
 
    ava = {"givenName": "Derek",
        }}
 
    policy = Policy(conf)
 
    ava = {"givenName": "Derek",

src/p/y/pysaml2-HEAD/tests/test_20_assertion.py   pysaml2(Download)
from saml2.saml import NameID
from saml2.saml import NAMEID_FORMAT_TRANSIENT
from saml2.assertion import Policy
from saml2.assertion import Assertion
from saml2.assertion import filter_on_attributes
        }}
 
    r = Policy(conf)
    assert r is not None
 
        }}
 
    r = Policy(conf)
    assert r is not None
 
        }}
 
    r = Policy(conf)
 
    ava = {"givenName": "Derek",
        }}
 
    policy = Policy(conf)
 
    ava = {"givenName": "Derek",

src/p/y/pysaml2-2.0.0/tests/test_37_entity_categories.py   pysaml2(Download)
from saml2 import saml, sigver
from saml2 import md
from saml2 import config
from saml2.assertion import Policy
from saml2.attribute_converter import ac_factory
def test_filter_ava():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava2():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava3():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava4():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have

src/p/y/pysaml2-HEAD/tests/test_37_entity_categories.py   pysaml2(Download)
from saml2 import saml, sigver
from saml2 import md
from saml2 import config
from saml2.assertion import Policy
from saml2.attribute_converter import ac_factory
def test_filter_ava():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava2():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava3():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have
def test_filter_ava4():
    policy = Policy({
        "default": {
            "lifetime": {"minutes": 15},
            #"attribute_restrictions": None  # means all I have

  1 | 2  Next