tinyrelayfile
tinyrelay/internal/auth/auth.go/

internal/auth/auth.go raw
1package auth
2
3import (
4 "time"
5
6 proof "github.com/FelineStateMachine/tinyrelay/protocol/auth"
7)
8
9// Validator and ChallengeManager preserve public verifier and replay-store
10// identity for callers that have not migrated to protocol/auth.
11type Validator = proof.Validator
12type ChallengeManager = proof.ChallengeManager
13
14var ErrMissingAuthorization = proof.ErrMissingAuthorization
15var ErrGRASP08Unauthorized = proof.ErrGRASP08Unauthorized
16
17func NewValidator(now func() time.Time) *Validator { return proof.NewValidator(now) }
18func NewChallengeManager(relayURL string, now func() time.Time) *ChallengeManager {
19 return proof.NewChallengeManager(relayURL, now)
20}
21func IsBlossomAuthorization(header string) bool { return proof.IsBlossomAuthorization(header) }
22func GRASP08RepositoryRoot(raw string) (string, bool) { return proof.GRASP08RepositoryRoot(raw) }

About

ownerc01503e8035f
visibilitypublic
headd730679639bf

Maintainers

  • c01503e8035f owner
  • ba1b5beed5b5 agent hermes

Clone

  • https://012.run/npub1cq2s86qrtadf36eqq3epm38wmhdynrrcwxf84eldk3f94dkv7ttsrulrz5/tinyrelay.git

Refs