mirror of
https://github.com/coturn/coturn.git
synced 2025-11-05 09:21:34 +01:00
oauth auth fixed
This commit is contained in:
parent
a4c4721595
commit
a04c9a0b4f
@ -2,7 +2,6 @@
|
|||||||
Version 4.2.1.1 'Monza':
|
Version 4.2.1.1 'Monza':
|
||||||
- oAuth security implementation:
|
- oAuth security implementation:
|
||||||
TODO:
|
TODO:
|
||||||
- authorization process - test;
|
|
||||||
- access-token must be cached and included only in ALLOCATE and REFRESH;
|
- access-token must be cached and included only in ALLOCATE and REFRESH;
|
||||||
- token timeout;
|
- token timeout;
|
||||||
- kid timeout;
|
- kid timeout;
|
||||||
|
|||||||
@ -488,7 +488,7 @@ int get_user_key(int in_oauth, int *out_oauth, u08bits *usname, u08bits *realm,
|
|||||||
dot.enc_block.mac_key,
|
dot.enc_block.mac_key,
|
||||||
pwdtmp,
|
pwdtmp,
|
||||||
turn_params.shatype,NULL)>0) {
|
turn_params.shatype,NULL)>0) {
|
||||||
ns_bcopy(dot.enc_block.mac_key,&key,dot.enc_block.key_length);
|
ns_bcopy(dot.enc_block.mac_key,key,dot.enc_block.key_length);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -496,8 +496,9 @@ int get_user_key(int in_oauth, int *out_oauth, u08bits *usname, u08bits *realm,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(out_oauth && *out_oauth)
|
if(out_oauth && *out_oauth) {
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
if(turn_params.use_auth_secret_with_timestamp) {
|
if(turn_params.use_auth_secret_with_timestamp) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user