package websocket
import "k8s.io/apiserver/pkg/authentication/request/websocket"
Index ¶
Types ¶
type ProtocolAuthenticator ¶
type ProtocolAuthenticator struct {
// contains filtered or unexported fields
}
ProtocolAuthenticator allows a websocket connection to provide a bearer token as a subprotocol in the format "base64url.bearer.authorization.<base64url-without-padding(bearer-token)>"
func NewProtocolAuthenticator ¶
func NewProtocolAuthenticator(auth authenticator.Token) *ProtocolAuthenticator
func (*ProtocolAuthenticator) AuthenticateRequest ¶
func (a *ProtocolAuthenticator) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error)
Source Files ¶
protocol.go
- Version
- v0.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 1 hour ago –
Tools for package owners.