oauthcredential.go 697 B

123456789101112131415161718
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. package webrtc
  4. // OAuthCredential represents OAuth credential information which is used by
  5. // the STUN/TURN client to connect to an ICE server as defined in
  6. // https://tools.ietf.org/html/rfc7635. Note that the kid parameter is not
  7. // located in OAuthCredential, but in ICEServer's username member.
  8. type OAuthCredential struct {
  9. // MACKey is a base64-url encoded format. It is used in STUN message
  10. // integrity hash calculation.
  11. MACKey string
  12. // AccessToken is a base64-encoded format. This is an encrypted
  13. // self-contained token that is opaque to the application.
  14. AccessToken string
  15. }