Cannot manipulate User via network client

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot manipulate User via network client

Yang@Spoken
I can not disable, enable, or delete user via wClient. Is this because the network client does not have the permission?  If yes, what is the proper step to give permission to network client?  Thx.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
hmm - this is all working for me via the example.jsp.  I find the user
via name and I am able to disable, enable and delete.

On Mon, May 15, 2017 at 10:18 AM, Yang@Spoken [via WiKID Strong
Authentication Forums] <[hidden email]> wrote:

> I can not disable, enable, or delete user via wClient. Is this because the
> network client does not have the permission?  If yes, what is the proper
> step to give permission to network client?  Thx.
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423.html
> To start a new topic under Support, email
> [hidden email]
> To unsubscribe from WiKID Strong Authentication Forums, click here.
> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
Here is the application log. Again I got  the "Error reading from the server".

2017-05-15 10:10:21.191 DEBUG 48594 --- [           main] com.wikidsystems.client.wClient          : Deleting User
2017-05-15 10:10:21.192 TRACE 48594 --- [           main] com.wikidsystems.client.wClient          : <transaction><type>7</type><data>                <user>                    <user-id>usery</user-id>                    <id_usermap>1</id_usermap>                    <bad-passcode-attempts>0</bad-passcode-attempts>                    <creation format="ms">1494486000000</creation>                    <domaincode>192168001163</domaincode>                    <status>1</status>                    <note></note>                    <lastActivity></lastActivity><token-list>                        <token>                            <device-id>1946775473828787149</device-id>                            <domain-id>2</domain-id>                            <offline-public-key encoding="base64">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCw91/SdL3QG20fXvbyc9HbD14vaolSi1mxRvsl3Ydb/MBJdE91IFMF+rUCLm1fBNoo/OwSlIUsJ/Bq9iZmHbOwdtCbSlZxoMeLmCWy7mzkCa10aAfQHDZ/EW260KZx1Bp7K0gZDKDpnlpZZ0GP5Ejx83B5kkhctBr3ZXbt+BqAhwIDAQAB</offline-public-key>                            <status>1</status>                            <bad-pin-attempts>0</bad-pin-attempts>                            <offline-authentication-count>0</offline-authentication-count>                            <creation format="ms">1494486000000</creation>                            <changed>false</changed>                            <forDeletion>false</forDeletion>                            <id_devicemap>1</id_devicemap>                            <type>0</type>                        </token></token-list>                </user><result>null</result><return-code>-2147483648</return-code></data></transaction>

Error reading from server
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
And here is the message received by the server:

bytes received:<transaction><type>7</type><data> <user> <user-id>usery</user-id> <id_usermap>1</id_usermap> <bad-passcode-attempts>0</bad-passcode-attempts> <creation format="ms">1494486000000</creation> <domaincode>192168001163</domaincode> <status>1</status> <note></note> <lastActivity></lastActivity><token-list> <token> <device-id>1946775473828787149</device-id> <domain-id>2</domain-id> <offline-public-key encoding="base64">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCw91/SdL3QG20fXvbyc9HbD14vaolSi1mxRvsl3Ydb/MBJdE91IFMF+rUCLm1fBNoo/OwSlIUsJ/Bq9iZmHbOwdtCbSlZxoMeLmCWy7mzkCa10aAfQHDZ/EW260KZx1Bp7K0gZDKDpnlpZZ0GP5Ejx83B5kkhctBr3ZXbt+BqAhwIDAQAB</offline-public-key> <status>1</status> <bad-pin-attempts>0</bad-pin-attempts> <offline-authentication-count>0</offline-authentication-count> <creation format="ms">1494486000000</creation> <changed>false</changed> <forDeletion>false</forDeletion> <id_devicemap>1</id_devicemap> <type>0</type> </token></token-list> </user><result>null</result><return-code>-2147483648</return-code></data></transaction>

And then call of find user got a negative return code:
bytes received:<transaction><type>5</type><data><domaincode>192168001163</domaincode><user-id>usery</user-id><result>null</result><return-code>-2147483648</return-code></data></transaction>
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
This could be an error in our docs, I think.  Try

<type>6</type>
and
 <forDeletion>true</forDeletion>

let me know if that works.

On Mon, May 15, 2017 at 11:32 AM, Yang@Spoken [via WiKID Strong
Authentication Forums] <[hidden email]> wrote:

> And here is the message received by the server:
>
> bytes received:<transaction><type>7</type><data> <user>
> <user-id>usery</user-id> <id_usermap>1</id_usermap>
> <bad-passcode-attempts>0</bad-passcode-attempts> <creation
> format="ms">1494486000000</creation> <domaincode>192168001163</domaincode>
> <status>1</status> <note></note> <lastActivity></lastActivity><token-list>
> <token> <device-id>1946775473828787149</device-id> <domain-id>2</domain-id>
> <offline-public-key
> encoding="base64">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCw91/SdL3QG20fXvbyc9HbD14vaolSi1mxRvsl3Ydb/MBJdE91IFMF+rUCLm1fBNoo/OwSlIUsJ/Bq9iZmHbOwdtCbSlZxoMeLmCWy7mzkCa10aAfQHDZ/EW260KZx1Bp7K0gZDKDpnlpZZ0GP5Ejx83B5kkhctBr3ZXbt+BqAhwIDAQAB</offline-public-key>
> <status>1</status> <bad-pin-attempts>0</bad-pin-attempts>
> <offline-authentication-count>0</offline-authentication-count> <creation
> format="ms">1494486000000</creation> <changed>false</changed>
> <forDeletion>false</forDeletion> <id_devicemap>1</id_devicemap>
> <type>0</type> </token></token-list>
> </user><result>null</result><return-code>-2147483648</return-code></data></transaction>
>
> And then call of find user got a negative return code:
> bytes
> received:<transaction><type>5</type><data><domaincode>192168001163</domaincode><user-id>usery</user-id><result>null</result><return-code>-2147483648</return-code></data></transaction>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423p7575426.html
> To start a new topic under Support, email
> [hidden email]
> To unsubscribe from WiKID Strong Authentication Forums, click here.
> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
I do not construct the message myself. I make a call of deleteUser from wClient.

      wc.deleteUser(user);
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
Oh, sorry. Of course.

Are you able to do it via the example.jsp on the server itself?



On Mon, May 15, 2017 at 1:19 PM, Yang@Spoken [via WiKID Strong
Authentication Forums] <[hidden email]> wrote:

> I do not construct the message myself. I make a call of deleteUser from
> wClient.
>
>       wc.deleteUser(user);
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423p7575428.html
> To start a new topic under Support, email
> [hidden email]
> To unsubscribe from WiKID Strong Authentication Forums, click here.
> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
Yes. I have been able to use example.jsp to enable and disable user with either localhost.p2 or my own network client .p2.  

Still I can not do it from my machine using my network client.  I do suspect the wClient.jar I have is different from what is used by the server. For one, the PreRegistration class on the server has one more constructor.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
Try using the wikid-server-enterprise-lib-4.2.0.jar in /opt/WiKID/lib
from your server.

On Mon, May 15, 2017 at 3:05 PM, Yang@Spoken [via WiKID Strong
Authentication Forums] <[hidden email]> wrote:

> Yes. I have been able to use example.jsp to enable and disable user with
> either localhost.p2 or my own network client .p2.
>
> Still I can not do it from my machine using my network client.  I do suspect
> the wClient.jar I have is different from what is used by the server. For
> one, the PreRegistration class on the server has one more constructor.
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423p7575430.html
> To start a new topic under Support, email
> [hidden email]
> To unsubscribe from WiKID Strong Authentication Forums, click here.
> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
Yes. The jar from the server works.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
Will you be releasing an update wClient.jar anytime soon? Or should I just use the server jar in my app? Does the server jar have everything the wClient.jar has?
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
Yes, we will. 

On May 16, 2017 9:02 AM, "Yang@Spoken [via WiKID Strong Authentication Forums]" <[hidden email]> wrote:
Will you be releasing an update wClient.jar anytime soon? Or should I just use the server jar in my app? Does the server jar have everything the wClient.jar has?


To start a new topic under Support, email [hidden email]
To unsubscribe from WiKID Strong Authentication Forums, click here.
NAML
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
In reply to this post by Yang@Spoken
updated - sorry for the confusion on our part.

https://downloads.wikidsystems.com/wClient-4.2.jar

On Tue, May 16, 2017 at 10:04 AM, Nick Owen <[hidden email]> wrote:

> Yes, we will.
>
> On May 16, 2017 9:02 AM, "Yang@Spoken [via WiKID Strong Authentication
> Forums]" <[hidden email]> wrote:
>>
>> Will you be releasing an update wClient.jar anytime soon? Or should I just
>> use the server jar in my app? Does the server jar have everything the
>> wClient.jar has?
>>
>> ________________________________
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423p7575433.html
>> To start a new topic under Support, email
>> [hidden email]
>> To unsubscribe from WiKID Strong Authentication Forums, click here.
>> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Yang@Spoken
The above link got me 404.  Please check.
Reply | Threaded
Open this post in threaded view
|

Re: Cannot manipulate User via network client

Nick Owen
Administrator
sorry, try: https://downloads.wikidsystems.com/wClient-4.2.0.jar



On Tue, May 16, 2017 at 1:13 PM, Yang@Spoken [via WiKID Strong
Authentication Forums] <[hidden email]> wrote:

> The above link got me 404.  Please check.
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://wikid-strong-authentication-forums.1491522.n2.nabble.com/Cannot-manipulate-User-via-network-client-tp7575423p7575436.html
> To start a new topic under Support, email
> [hidden email]
> To unsubscribe from WiKID Strong Authentication Forums, click here.
> NAML



--
Nick Owen  --  WiKID Systems, Inc.
http://www.wikidsystems.com
On-premises Two-Factor Authentication
http://twitter.com/wikidsystems | #wikid on freenode.net
Get our low-volume newsletter - Notices, updates : http://eepurl.com/zzUeP