Interface documentation for OaAuthUser

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
fleitner
Posts:15
Joined: Thu May 11, 2017 10:04 am

Interface documentation for OaAuthUser

Post by fleitner »

Hello,

I'm currently trying to implement a user defined authentication for WinCC OA. The documentation describes to implement an OaAuthMethodUserdefined class

For the custom password verification, the user is given as an OaAuthUser object. However, I can not find the interface description for that class, the corresponding control script is encrypted and the help does not contain any information about it.
As such I can not extract the username from that object and without username the password check is difficult.

I can output the object with DebugN, which results in
WCCOAui2:["user: name:asd | domain:AD1 | lang:en_US.utf8 | ID:65535 | auth:authType:2 | factory:methods::OaAuthMethod OaAuthMethodUserdefined::create() | Windows:OaAuthMethod OaAuthMethodAD::create() | Standard:OaAuthMethod OaAuthMethodStandard::create() | ws:"]
Can anyone give me a hint on how to access that object, or where to find the corresponding documentation?
I tried accessing it as an array, but to no avail.

Best regards
Frank

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Interface documentation for OaAuthUser

Post by Gertjan van Schijndel »

The script editor auto completion should show you which functions are available.

But to get the user name you can use the 'getName' function from the 'OaAuthUser' object.

fleitner
Posts:15
Joined: Thu May 11, 2017 10:04 am

Re: Interface documentation for OaAuthUser

Post by fleitner »

Thank you for your answer. I can't get the auto completion to work in the script editor, but the getName function works fine.

Best regards
Frank

3 posts • Page 1 of 1