Documentation
¶
Index ¶
- type AgentBond
- type AuthError
- type AuthProvider
- type B64EncodedAuthProvider
- type BondingAuthProvider
- type BondingData
- type BondingEvictionProvider
- type ContextKey
- type JWKSAuthProvider
- type JWKSBondingAuthProvider
- func (b JWKSBondingAuthProvider) Cache() *otter.Cache[string, []AgentBond]
- func (b JWKSBondingAuthProvider) MaxBondsPerSubject() uint16
- func (b JWKSBondingAuthProvider) MaxDevices() uint16
- func (b JWKSBondingAuthProvider) MinDeviceEvictionInterval() time.Duration
- func (j *JWKSBondingAuthProvider) Validate(w http.ResponseWriter, r *http.Request, token string) (*http.Request, *AuthError)
- type JWTAuthProvider
- type JWTBondingAuthProvider
- func (b JWTBondingAuthProvider) Cache() *otter.Cache[string, []AgentBond]
- func (b JWTBondingAuthProvider) MaxBondsPerSubject() uint16
- func (b JWTBondingAuthProvider) MaxDevices() uint16
- func (b JWTBondingAuthProvider) MinDeviceEvictionInterval() time.Duration
- func (j *JWTBondingAuthProvider) Validate(w http.ResponseWriter, r *http.Request, token string) (*http.Request, *AuthError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthProvider ¶
type B64EncodedAuthProvider ¶
type B64EncodedAuthProvider struct{}
func NewB64EncodedAuthProvider ¶
func NewB64EncodedAuthProvider() *B64EncodedAuthProvider
type BondingAuthProvider ¶ added in v0.7.0
type BondingAuthProvider interface {
MaxDevices() uint16
MinDeviceEvictionInterval() time.Duration
MaxBondsPerSubject() uint16
Cache() *otter.Cache[string, []AgentBond]
}
A BondingAuthProvider MUST set the BondingRecordContextKey in the request context.
type BondingData ¶ added in v0.7.0
func (*BondingData) Evict ¶ added in v0.7.0
func (b *BondingData) Evict(keep uint16)
type BondingEvictionProvider ¶ added in v0.7.0
type ContextKey ¶ added in v0.7.0
type ContextKey string
const BondingRecordContextKey ContextKey = "bondingRecord"
const ContextPathKey ContextKey = "path"
type JWKSAuthProvider ¶
type JWKSAuthProvider struct {
// contains filtered or unexported fields
}
func NewJWKSAuthProvider ¶
type JWKSBondingAuthProvider ¶ added in v0.7.0
type JWKSBondingAuthProvider struct {
// contains filtered or unexported fields
}
func NewJWKSBondingAuthProvider ¶ added in v0.7.0
func (JWKSBondingAuthProvider) MaxBondsPerSubject ¶ added in v0.7.0
func (b JWKSBondingAuthProvider) MaxBondsPerSubject() uint16
func (JWKSBondingAuthProvider) MaxDevices ¶ added in v0.7.0
func (b JWKSBondingAuthProvider) MaxDevices() uint16
func (JWKSBondingAuthProvider) MinDeviceEvictionInterval ¶ added in v0.7.0
type JWTAuthProvider ¶
type JWTAuthProvider struct {
// contains filtered or unexported fields
}
func NewJWTAuthProvider ¶
func NewJWTAuthProvider(sharedSecret []byte) (*JWTAuthProvider, error)
type JWTBondingAuthProvider ¶ added in v0.7.0
type JWTBondingAuthProvider struct {
// contains filtered or unexported fields
}
func NewJWTBondingAuthProvider ¶ added in v0.7.0
func (JWTBondingAuthProvider) MaxBondsPerSubject ¶ added in v0.7.0
func (b JWTBondingAuthProvider) MaxBondsPerSubject() uint16
func (JWTBondingAuthProvider) MaxDevices ¶ added in v0.7.0
func (b JWTBondingAuthProvider) MaxDevices() uint16
func (JWTBondingAuthProvider) MinDeviceEvictionInterval ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.