11 Commits

Author SHA1 Message Date
cnderrauber
17875e94bb Verify nbf (#1345)
* return jwt.Claims when Verify token

* fix test
2025-12-22 11:19:42 +08:00
David Zhao
b7ee9e0582 use SetVideoGrant instead of deprecated AddGrant (#1059)
* use SetVideoGrant instead of deprecated AddGrant

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-05-02 23:43:17 -07:00
Raja Subramanian
9e23fdbd08 Revert "Update to go/jose/v4 (#756)" (#759)
This reverts commit 73ece66d30.
2024-07-12 13:28:45 +05:30
David Zhao
73ece66d30 Update to go/jose/v4 (#756)
* Update to go/jose/v4

* changeset

* remove unused import

* use longer key for test
2024-07-10 10:12:29 -07:00
David Zhao
e0c49d3c9d Support for key/value attributes on Participant (#733)
* Support for key/value attributes on Participant

Key/value attributes lets us:
* allow various components to provide more information about the participant (i.e. SIP including the phone number)
* allow Agents to communicate their own status to the end user via RTC
* enable applications to update specific fields without overriding others

* generated protobuf

* Attribute support for SIP.

* generated protobuf

* generated protobuf

* allow specifying attributes during token generation

* Remove sip prefix and rename phone number attrs.

* regenerate protos

* update tests

* add kv attrs to sip token

* add attribute test

* changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Denys Smirnov <dennwc@pm.me>
2024-06-19 22:27:09 -07:00
David Zhao
c9e9ae555f Add license headers & NOTICE (#429)
* Add license headers & NOTICE

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 16:43:25 -07:00
David Zhao
a1a39a16f4 Update from square/go-jose.v2 to go-jose/go-jose/v3 (#334)
square/go-jose is deprecated
2023-04-04 18:09:17 -07:00
David Zhao
078505af8b Add static check CI (#97)
* Add static check CI

* fix static check errors
2022-02-24 23:36:09 -08:00
David Zhao
d60d683ac8 Use pointers for perms in order to allow nil (#11)
* nullable permission grants

* nil perms, canPublishData

* convenience setters
2021-08-18 22:47:47 -07:00
David Zhao
88f6f707e6 breaking API update - SetMetadata takes in opaque string, allow updating permissions when updating a participant 2021-03-20 22:09:52 -07:00
David Zhao
e14fc4abdc moved over auth and utils packages 2021-03-12 23:46:02 -08:00