MCPcopy Create free account
hub / github.com/koding/kite / selfVerify

Method selfVerify

request.go:358–368  ·  view source on GitHub ↗
(pub string)

Source from the content-addressed store, hash-verified

356}
357
358func (k *Kite) selfVerify(pub string) error {
359 k.configMu.RLock()
360 ourKey := k.Config.KontrolKey
361 k.configMu.RUnlock()
362
363 if pub != ourKey {
364 return ErrKeyNotTrusted
365 }
366
367 return nil
368}
369
370func (k *Kite) verify(token *jwt.Token) (interface{}, error) {
371 k.verifyOnce.Do(k.verifyInit)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected