mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
oauth & twitter client
/twitter on & /twitter test in a user channel to test
This commit is contained in:
parent
791f671bf4
commit
a5164da136
10 changed files with 231 additions and 35 deletions
13
world/net/library/hmac.c
Normal file
13
world/net/library/hmac.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
#include <net.h>
|
||||
|
||||
inherit NET_PATH "library/base64";
|
||||
|
||||
#include HTTP_PATH "library.i"
|
||||
|
||||
string hmac_bin(int method, string key, string arg) {
|
||||
return regreplace(hmac(method, key, arg), "..", #'xx2c, 1); //'
|
||||
}
|
||||
|
||||
string hmac_base64(int method, string key, string arg) {
|
||||
return encode_base64((int *)hmac_bin(method, key, arg));
|
||||
}
|
|
@ -171,6 +171,7 @@ volatile mapping share = ([
|
|||
"_understand_modules" : PSYC_ROUTING,
|
||||
"_using_modules" : PSYC_ROUTING,
|
||||
]),
|
||||
"oauth_request_tokens": ([ ]),
|
||||
]);
|
||||
|
||||
varargs mixed shared_memory(mixed datensatz, mixed value) {
|
||||
|
|
|
@ -78,6 +78,8 @@ private volatile mapping _sigs = ([
|
|||
"_request_remove": ({ "_request_remove", 0, "_person" }),
|
||||
"_request_priv": ({ "_request_privacy", 0, "_privacy" }),
|
||||
"_request_privacy": ({ "_request_privacy", 0, "_privacy" }),
|
||||
"_request_tw": ({ "_request_twitter", 0, "_switch" }),
|
||||
"_request_twitter": ({ "_request_twitter", 0, "_switch" }),
|
||||
#endif
|
||||
#ifdef EXPERIMENTAL
|
||||
// stuff to play around with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue