New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connect to OPC UA Server with UserName/Password #381
Comments
Hi @sanny32 For a full code see in UA-.NETStandard\SampleApplications\Workshop\UserAuthentication In the xml file section UserTokenPolicies means that a client could provided a username with (or without) password for login. With For login/password in the child class of
SessionManager just creates the UserIdentity object to accept the user ... or not to reject it.
Bye. |
Exploring the source code, I have found the user account path in OS: %CommonApplicationData%\OPC Foundation\Accounts\{Application Name}\{UserName}.xml, where {Application Name} - name of the executable file of the OPC UA Server, {UserName} - name of the user account. |
What is the way to configure OPC UA Server to connect with UserName and Password?
I'm tried this configuration in server xml file configuration, but without success.
<RegistrationEndpoint> <ua:UserIdentityTokens> <ua:UserIdentityToken> <ua:UserName>User1</ua:UserName> <ua:Password>1</ua:Password> </ua:UserIdentityToken> </ua:UserIdentityTokens> </RegistrationEndpoint>
The text was updated successfully, but these errors were encountered: