Expectation concerning UserIdentityToken, wrong credentials and support for anonymous access|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Expectation concerning UserIdentityToken, wrong credentials and support for anonymous access
Avatar
Klaus Pittig
New Member
Members
Forum Posts: 1
Member Since:
05/12/2020
sp_UserOfflineSmall Offline
1
05/12/2020 - 09:07
sp_Permalink sp_Print

Referring to the Spec Part 4 - Services concerning the UserIdentityToken (and also Part 2)

"The credentials of the user associated with the Client application. The Server uses these credentials to determine whether the Client should be allowed to activate a Session and what resources the Client has access to during this Session.
...
Null or empty user token shall always be interpreted as anonymous.
"

-> What is the expected behaviour of a server, if it supports Anonymous Access and the Client comes in with wrong credentials?

For my understanding, the server resp. the Session Manager is expected to derive the UserIdentityToken anyway and to trigger an authentication flow, if the client provides these credentials; and then the server denies the right to activate a session on failing auth, even if anonymous access is allowed.
In order to really do an anonymous connect the credentials MUST be empty or missing.

Is that correct, wrong or just unspecified? 

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
05/13/2020 - 03:51
sp_Permalink sp_Print

If credentials are provided they shall be validated. If validation fails ActiveSession fails.

If anonymous credentials are only allowed if explicitly requested by the client.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 41
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855