User Id...

Message boards : Web interfaces : User Id...
Message board moderation

To post messages, you must log in.

AuthorMessage
Developer
Avatar

Send message
Joined: 3 Dec 13
Posts: 5
United States
Message 51628 - Posted: 3 Dec 2013, 0:19:13 UTC
Last modified: 3 Dec 2013, 0:21:49 UTC

Sorry; this wasn't very clear to me from reading the WebRPC calls

From the client side, how do I determine with RPC calls (and settings in client initialization files?) what my user id on a designated project is? [starting with either the user name or Email address...]
ID: 51628 · Report as offensive
eckley

Send message
Joined: 20 Nov 13
Posts: 18
Australia
Message 51629 - Posted: 3 Dec 2013, 1:15:41 UTC - in response to Message 51628.  

Hey,

I'm new here so someone more experienced might be able to jump in as well, but I had to figure this out for our project (http://www.theskynet.org).

You can make a call to /project/lookup_account.php with the get params email_addr and passwd_hash where passwd_hash is a MD5 hash of your_password + your_email. Note your email must be lower case.

This will return an authenticator that you can then use with /project/am_get_info.php with the get params account_key set to the authenticator returned by the first call.

This will then return all your account details including your user id.
more details at http://boinc.berkeley.edu/trac/wiki/WebRpc

Cheers
Alex
webmaster theSkyNet
ID: 51629 · Report as offensive
Developer
Avatar

Send message
Joined: 3 Dec 13
Posts: 5
United States
Message 51630 - Posted: 3 Dec 2013, 2:14:20 UTC - in response to Message 51629.  

Thanks; and it appears a client-side program can get the password hash from acct_mgr_login.xml It appears that there would be a unique acct_mgr_login.xml file for each project...
ID: 51630 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 51652 - Posted: 4 Dec 2013, 8:08:47 UTC

Have in mind that an Account manager userid is something different than a BOINC project userid!

I assume you write a tool that communicates to different projects via WebRPCs. Each project has it's own user DB so a single user attached to several projects will have a unique userid with each project. For third party tools this is usually provided by the user. You can also use the lookup account RPCs and get the userid if you provide the email.
ID: 51652 · Report as offensive

Message boards : Web interfaces : User Id...

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.