﻿"""
Separated from app_config:main() so they can be leveraged in fxnal testing.
"""
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy


def authn_policy(*args, **kwargs):
    return AuthTktAuthenticationPolicy(*args, **kwargs)


def authz_policy(*args, **kwargs):
    return ACLAuthorizationPolicy()

8fa0e72af6168e7a526466d4cf842ed2daa9c1b5
﻿"""
Separated from app_config:main() so they can be leveraged in fxnal testing.
"""
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy


def authn_policy(*args, **kwargs):
    return AuthTktAuthenticationPolicy(*args, **kwargs)


def authz_policy(*args, **kwargs):
    return ACLAuthorizationPolicy()
