Location: TO_BE_DELETED

Discussion: CreateNamespace cred.sigReported This is a featured thread

Showing 3 posts
evolanding
evolanding
CreateNamespace cred.sig
Jul 25 2008, 2:05 PM EDT | Post edited: Jul 25 2008, 2:05 PM EDT
The notes read:
Developer credential signature. This is calculated as the HMAC-SHA-1 hash of the developer key (the key parameter), the namespace ID (the namespace.namespaceId parameter, described above), and the current timestamp (the cred.ts parameter). The key used by the HMAC-SHA-1 algorithm should be the developer secret.

For example, in PHP:
$sig = hash_hmac( "sha1", $developer_key . $user_id . time(), $developer_secret, FALSE );

The PHP code is for user service, and does not match the explanation above it. Do I sub the NS in place of the userID? I don't need a userID to generate a NS, do I?
Do you find this valuable?    
Keyword tags: createnamespace namespace
evolanding
evolanding
1. RE: CreateNamespace cred.sig
Jul 25 2008, 2:47 PM EDT | Post edited: Jul 25 2008, 2:47 PM EDT
I got it working, by subbing the desired namespace in place of the userID.

My new question is, will returned namespace variables always be in the format "wp-injected-{globalNS}-{localNS}"?

If they follow this pattern, we can auto generate them on our side, otherwise, if there is any deviation from a standard, we will need to write them into a database, which obviously we'd like to avoid.
Do you find this valuable?    
devin_wetpaint
devin_wetpaint
2. RE: CreateNamespace cred.sig
Jul 28 2008, 1:44 PM EDT | Post edited: Jul 28 2008, 1:44 PM EDT
Hi,

Per http://www.wetpaintinjected.com/thread/1700583/Changing+the+namespace+of+a+cell , it would be best not to rely on any particular pattern on namespaces generated via this API call.

- DC
Do you find this valuable?    

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)