

10:56, EET

February 21, 2023

11:42, EET

Moderators
February 11, 2020

Hello,
Getting Bad_IdentityTokenRejected StatusCode means that the Server has rejected the credentials that were used to attempt to activate a Session. This StatusCode can mean that either the given credentials were incorrect or the Server does not support the selected UserTokeType at all.
Is the Server or the Client developed with Prosys OPC UA SDK for Java?
7:18, EET

February 21, 2023

8:02, EET

Moderators
February 11, 2020

Hello,
What type of IdentityToken are you trying to use? Anonymous, UsernameAndPassword, UserCertificate or something else? If you’re getting Bad_IdentityTokenRejected StatusCode and think the IdentityToken you’re using is correct, there might be something wrong with the Server’s user authentication implementation. This is done by a class that implements the UserValidator interface.
13:20, EET

February 21, 2023

14:15, EET

Moderators
February 11, 2020

Hello,
That would suggest that either the Server does not support the given combination of username and password or it does not support using UsernameAndPassword IdentityTokens at all.
Please take a look at the MyUserValidator class of SampleConsoleServer sample project for an example of how to check usernames and passwords on the Server side.
Also, make sure that the Server has been configured to support UsernameAndPassword UserTokenPolicy. Take a look at the initialize method of SampleConsoleServer class for an example of how to configure supported UserTokenPolicies.
Most Users Ever Online: 1919
Currently Online:
30 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 765
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1543
Posts: 6510
Newest Members:
jodiexae492966, fayetozer72, anglea06o05589, matsa, Jameshax, Jeffreyfledy, lilliefalconer, Olpsom, shastaappleton, hildred39iModerators: Jouni Aro: 1029, Pyry: 1, Petri: 0, Bjarne Boström: 1042, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1