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