Versions in this module Expand all Collapse all v3 v3.7.3 Apr 29, 2020 Changes in this version + type Config struct + AuthCache struct{ ... } + DatabaseURI string + Email struct{ ... } + EndDevicePicture struct{ ... } + OAuth oauth.Config + ProfilePicture struct{ ... } + UserRegistration struct{ ... } + type IdentityServer struct + func New(c *component.Component, config *Config) (is *IdentityServer, err error) + func (is *IdentityServer) ApplicationRights(ctx context.Context, appIDs ttnpb.ApplicationIdentifiers) (*ttnpb.Rights, error) + func (is *IdentityServer) ClientRights(ctx context.Context, cliIDs ttnpb.ClientIdentifiers) (*ttnpb.Rights, error) + func (is *IdentityServer) Context() context.Context + func (is *IdentityServer) GatewayRights(ctx context.Context, gtwIDs ttnpb.GatewayIdentifiers) (*ttnpb.Rights, error) + func (is *IdentityServer) IsAdmin(ctx context.Context) bool + func (is *IdentityServer) OrganizationRights(ctx context.Context, orgIDs ttnpb.OrganizationIdentifiers) (*ttnpb.Rights, error) + func (is *IdentityServer) RegisterHandlers(s *runtime.ServeMux, conn *grpc.ClientConn) + func (is *IdentityServer) RegisterServices(s *grpc.Server) + func (is *IdentityServer) RequireAdmin(ctx context.Context) error + func (is *IdentityServer) RequireAuthenticated(ctx context.Context) error + func (is *IdentityServer) Roles() []ttnpb.ClusterRole + func (is *IdentityServer) SendContactsEmail(ctx context.Context, ids *ttnpb.EntityIdentifiers, ...) error + func (is *IdentityServer) SendEmail(ctx context.Context, f func(emails.Data) email.MessageData) (err error) + func (is *IdentityServer) SendUserEmail(ctx context.Context, userIDs *ttnpb.UserIdentifiers, ...) error + func (is *IdentityServer) SetRedisCache(redis *redis.Client) + func (is *IdentityServer) UniversalRights(ctx context.Context) *ttnpb.Rights + func (is *IdentityServer) UserRights(ctx context.Context, userIDs ttnpb.UserIdentifiers) (*ttnpb.Rights, error)