summaryrefslogtreecommitdiff
path: root/macaroonbakery/__init__.py
blob: 6397a1920443e984b0d135b98b5a0981b3785caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.

from macaroonbakery.versions import (
    VERSION_0,
    VERSION_1,
    VERSION_2,
    VERSION_3,
    LATEST_VERSION,
)
from macaroonbakery.authorizer import (
    ACLAuthorizer,
    Authorizer,
    AuthorizerFunc,
    ClosedAuthorizer,
    EVERYONE,
)
from macaroonbakery.codec import (
    decode_caveat,
    encode_caveat,
    encode_uvarint,
)
from macaroonbakery.checker import (
    AuthChecker,
    AuthInfo,
    Checker,
    LOGIN_OP,
    Op,
)
from macaroonbakery.error import (
    AuthInitError,
    CaveatNotRecognizedError,
    DischargeRequiredError,
    IdentityError,
    PermissionDenied,
    ThirdPartyCaveatCheckFailed,
    ThirdPartyInfoNotFound,
    VerificationError,
)
from macaroonbakery.identity import (
    ACLIdentity,
    Identity,
    IdentityClient,
    NoIdentities,
    SimpleIdentity,
)
from macaroonbakery.keys import (
    generate_key,
    PrivateKey,
    PublicKey,
)
from macaroonbakery.store import (
    MemoryOpsStore,
    MemoryKeyStore,
)
from macaroonbakery.third_party import (
    ThirdPartyCaveatInfo,
    ThirdPartyInfo,
    legacy_namespace,
)
from macaroonbakery.macaroon import (
    Macaroon,
    MacaroonJSONDecoder,
    MacaroonJSONEncoder,
    ThirdPartyLocator,
    ThirdPartyStore,
    macaroon_version,
)
from macaroonbakery.discharge import (
    ThirdPartyCaveatChecker,
    discharge,
    discharge_all,
    local_third_party_caveat,
)
from macaroonbakery.oven import (
    Oven,
    canonical_ops,
)
from macaroonbakery.bakery import Bakery
from macaroonbakery.utils import b64decode

__all__ = [
    'ACLAuthorizer',
    'ACLIdentity',
    'AuthChecker',
    'AuthInfo',
    'AuthInitError',
    'Authorizer',
    'AuthorizerFunc',
    'VERSION_0',
    'VERSION_1',
    'VERSION_2',
    'VERSION_3',
    'Bakery',
    'CaveatNotRecognizedError',
    'Checker',
    'ClosedAuthorizer',
    'DischargeRequiredError',
    'EVERYONE',
    'Identity',
    'IdentityClient',
    'IdentityError',
    'LATEST_VERSION',
    'LOGIN_OP',
    'Macaroon',
    'MacaroonJSONDecoder',
    'MacaroonJSONEncoder',
    'MemoryKeyStore',
    'MemoryOpsStore',
    'NoIdentities',
    'Op',
    'Oven',
    'PermissionDenied',
    'PrivateKey',
    'PublicKey',
    'SimpleIdentity',
    'ThirdPartyCaveatCheckFailed',
    'ThirdPartyCaveatChecker',
    'ThirdPartyCaveatInfo',
    'ThirdPartyInfo',
    'ThirdPartyInfoNotFound',
    'ThirdPartyLocator',
    'ThirdPartyStore',
    'VERSION',
    'VerificationError',
    'b64decode',
    'canonical_ops',
    'decode_caveat',
    'discharge',
    'discharge_all',
    'encode_caveat',
    'encode_uvarint',
    'generate_key',
    'legacy_namespace',
    'local_third_party_caveat',
    'macaroon_version',
]