CCF
Loading...
Searching...
No Matches
common_auth_policies.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
9
10#include <memory>
11
17namespace ccf
18{
19 // Auth policies
21 static std::shared_ptr<EmptyAuthnPolicy> empty_auth_policy =
22 std::make_shared<EmptyAuthnPolicy>();
23
26 static std::shared_ptr<UserCertAuthnPolicy> user_cert_auth_policy =
27 std::make_shared<UserCertAuthnPolicy>();
28
31 static std::shared_ptr<MemberCertAuthnPolicy> member_cert_auth_policy =
32 std::make_shared<MemberCertAuthnPolicy>();
33
36 static std::shared_ptr<AnyCertAuthnPolicy> any_cert_auth_policy =
37 std::make_shared<AnyCertAuthnPolicy>();
38
41 static std::shared_ptr<JwtAuthnPolicy> jwt_auth_policy =
42 std::make_shared<JwtAuthnPolicy>();
43
46 static std::shared_ptr<MemberCOSESign1AuthnPolicy>
47 member_cose_sign1_auth_policy =
48 std::make_shared<MemberCOSESign1AuthnPolicy>();
49
52 static std::shared_ptr<UserCOSESign1AuthnPolicy> user_cose_sign1_auth_policy =
53 std::make_shared<UserCOSESign1AuthnPolicy>();
54
58 static AuthnPolicies no_auth_required = {};
59}
Definition app_interface.h:14
std::vector< std::shared_ptr< AuthnPolicy > > AuthnPolicies
Definition authentication_types.h:47