cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
811
Views
0
Helpful
1
Replies

Generate OAuth 1.0 nonce & signature - set value

stork
Level 1
Level 1

Looking to create OAuth nonce and signature dynamically for OAuth 1.0 verification.  I was thinking this could be accomplished in using the set value element and some java code, but I'm not sure what packages would need to be imported to accomplish this. 

 

For the set value element I was going to create 3 variables (timestamp, nonce, signature) and then in the authentication header place the local variables in the correct places. For example if I wanted to generate epoch time I was going to do the following;

importPackage(com.audium.server.cvpUtil);
timestamp=new Date().getTime() /1000;
timestamp;

 

From for the nonce and signature do I need to import other packages or am I going about this the wrong way?

 

Any guidance on this would be great!

 

1 Reply 1

piyush aghera
Spotlight
Spotlight

Hi jc12,

Did you get any solution as to how this can be accomplished and what modules to be imported for oauth-1.0a ?

 

Thanks.