oauthcredential.go 595 B

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