Versions in this module Expand all Collapse all v0 v0.0.4 Nov 19, 2022 v0.0.3 Nov 13, 2022 Changes in this version + const DeviceAccessTokenMetadataKey + var ClientCACertPool = must.Compute(func() (*x509.CertPool, error) { ... }) + type AuthService struct + func NewAuthService(ctx context.Context, params *cloudconfig.Params) (*AuthService, error) + func (s *AuthService) ExtendToken(ctx context.Context, req *pb.ExtendTokenRequest) (*pb.ExtendTokenResponse, error) + type DeviceAccessToken struct + func (dat *DeviceAccessToken) Expiration() time.Time + func (dat *DeviceAccessToken) Proto() *pb.DeviceAccessToken + func (dat *DeviceAccessToken) UserID() string + type DeviceTokenVerifier struct + func NewDeviceTokenVerifier(params *cloudconfig.Params) *DeviceTokenVerifier + func (dtv *DeviceTokenVerifier) Verify(token TokenString) (*DeviceAccessToken, error) + type Identity struct + func FixmeMainHardcodedIdentity() *Identity + func (i *Identity) ID() string + func (i *Identity) String() string + type Service struct + func NewService(params *cloudconfig.Params) *Service + func (s *Service) IdentityFromContext(ctx context.Context) (*Identity, error) + type TokenString string