summaryrefslogtreecommitdiff
path: root/vendor/github.com/pion/webrtc/v3/oauthcredential.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/pion/webrtc/v3/oauthcredential.go')
-rw-r--r--vendor/github.com/pion/webrtc/v3/oauthcredential.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/pion/webrtc/v3/oauthcredential.go b/vendor/github.com/pion/webrtc/v3/oauthcredential.go
new file mode 100644
index 0000000..46170c7
--- /dev/null
+++ b/vendor/github.com/pion/webrtc/v3/oauthcredential.go
@@ -0,0 +1,15 @@
+package webrtc
+
+// OAuthCredential represents OAuth credential information which is used by
+// the STUN/TURN client to connect to an ICE server as defined in
+// https://tools.ietf.org/html/rfc7635. Note that the kid parameter is not
+// located in OAuthCredential, but in ICEServer's username member.
+type OAuthCredential struct {
+ // MACKey is a base64-url encoded format. It is used in STUN message
+ // integrity hash calculation.
+ MACKey string
+
+ // AccessToken is a base64-encoded format. This is an encrypted
+ // self-contained token that is opaque to the application.
+ AccessToken string
+}