open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
accesscontrol_default.h
Go to the documentation of this file.
1/** This work is licensed under a Creative Commons CCZero 1.0 Universal License.
2 * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
3 *
4 * Copyright 2016-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
5 * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
6 */
7
8#ifndef UA_ACCESSCONTROL_DEFAULT_H_
9#define UA_ACCESSCONTROL_DEFAULT_H_
10
12#include <open62541/server.h>
13
15
20
22 (const UA_String *userName, const UA_ByteString *password,
23 size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin
24 *usernamePasswordLogin, void **sessionContext, void *loginContext);
25
26/** Default access control. The login can be anonymous, username-password or
27 * certificate-based. A logged-in user has all access rights.
28 *
29 * The plugin stores the UserIdentityToken in the session context. So that
30 * cannot be used for other purposes.
31 *
32 * The certificate verification plugin lifecycle is moved to the access control
33 * system. So it is cleared up eventually together with the AccessControl. */
34UA_EXPORT UA_StatusCode
36 UA_Boolean allowAnonymous,
37 const UA_ByteString *userTokenPolicyUri,
38 size_t usernamePasswordLoginSize,
39 const UA_UsernamePasswordLogin *usernamePasswordLogin);
40
41UA_EXPORT UA_StatusCode
43 UA_Boolean allowAnonymous,
44 const UA_ByteString *userTokenPolicyUri,
45 size_t usernamePasswordLoginSize,
46 const UA_UsernamePasswordLogin *usernamePasswordLogin,
48 void *loginContext);
49
51
52#endif /* UA_ACCESSCONTROL_DEFAULT_H_ */
UA_EXPORT UA_StatusCode UA_AccessControl_defaultWithLoginCallback(UA_ServerConfig *config, UA_Boolean allowAnonymous, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, UA_UsernamePasswordLoginCallback loginCallback, void *loginContext)
UA_EXPORT UA_StatusCode UA_AccessControl_default(UA_ServerConfig *config, UA_Boolean allowAnonymous, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin)
Default access control.
UA_StatusCode(* UA_UsernamePasswordLoginCallback)(const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:100
#define _UA_END_DECLS
Definition config.h:107
This work is licensed under a Creative Commons CCZero 1.0 Universal License.
_UA_BEGIN_DECLS typedef bool UA_Boolean
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition types.h:27
uint32_t UA_StatusCode
Definition types.h:82