open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
accesscontrol_default.h File Reference
#include <open62541/plugin/accesscontrol.h>
#include <open62541/server.h>

Go to the source code of this file.

Data Structures

struct  UA_UsernamePasswordLogin
 

Typedefs

typedef UA_StatusCode(* UA_UsernamePasswordLoginCallback) (const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)
 

Functions

UA_EXPORT UA_StatusCode UA_AccessControl_default (UA_ServerConfig *config, UA_Boolean allowAnonymous, const UA_ByteString *userTokenPolicyUri, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin)
 
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)
 

Typedef Documentation

◆ UA_UsernamePasswordLoginCallback

typedef UA_StatusCode(* UA_UsernamePasswordLoginCallback) (const UA_String *userName, const UA_ByteString *password, size_t usernamePasswordLoginSize, const UA_UsernamePasswordLogin *usernamePasswordLogin, void **sessionContext, void *loginContext)

Definition at line 21 of file accesscontrol_default.h.

Function Documentation

◆ UA_AccessControl_default()

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.

The login can be anonymous, username-password or certificate-based. A logged-in user has all access rights.

The plugin stores the UserIdentityToken in the session context. So that cannot be used for other purposes.

The certificate verification plugin lifecycle is moved to the access control system. So it is cleared up eventually together with the AccessControl.

◆ UA_AccessControl_defaultWithLoginCallback()

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 
)