Versions in this module Expand all Collapse all v0 v0.9.2 Jun 24, 2020 Changes in this version + type SafeAuth struct + func (s *SafeAuth) AddSharedSecret(ctx context.Context, req *pb.AddSharedSecretRequest) (*pb.AddSharedSecretResponse, error) + func (s *SafeAuth) ClearSharedSecrets(ctx context.Context, req *pb.ClearSharedSecretsRequest) (*pb.ClearSharedSecretsResponse, error) + func (s *SafeAuth) CopyKeyNode(ctx context.Context, req *pb.CopyKeyNodeRequest) (*pb.CopyKeyNodeResponse, error) + func (s *SafeAuth) CreateDataKey(ctx context.Context, req *pb.CreateDataKeyRequest) (*pb.CreateDataKeyResponse, error) + func (s *SafeAuth) CreateKeyNode(ctx context.Context, req *pb.CreateKeyNodeRequest) (*pb.CreateKeyNodeResponse, error) + func (s *SafeAuth) DeleteDataKey(ctx context.Context, req *pb.DeleteDataKeyRequest) (*pb.DeleteDataKeyResponse, error) + func (s *SafeAuth) DeleteKeyNode(ctx context.Context, req *pb.DeleteKeyNodeRequest) (*pb.DeleteKeyNodeResponse, error) + func (s *SafeAuth) DisableKeyNode(ctx context.Context, req *pb.DisableKeyNodeRequest) (*pb.DisableKeyNodeResponse, error) + func (s *SafeAuth) EnableKeyNode(ctx context.Context, req *pb.EnableKeyNodeRequest) (*pb.EnableKeyNodeResponse, error) + func (s *SafeAuth) GetDataKey(ctx context.Context, req *pb.GetDataKeyRequest) (*pb.GetDataKeyResponse, error) + func (s *SafeAuth) GetDataKeyById(ctx context.Context, req *pb.GetDataKeyByIdRequest) (*pb.GetDataKeyByIdResponse, error) + func (s *SafeAuth) GetDataKeysByAccount(ctx context.Context, req *pb.GetDataKeysByAccountRequest) (*pb.GetDataKeysByAccountResponse, error) + func (s *SafeAuth) GetDecryptedDataKey(ctx context.Context, req *pb.GetDecryptedDataKeyRequest) (*pb.GetDecryptedDataKeyResponse, error) + func (s *SafeAuth) GetDecryptedKeyNode(ctx context.Context, req *pb.GetDecryptedKeyNodeRequest) (*pb.GetDecryptedKeyNodeResponse, error) + func (s *SafeAuth) GetJwtFromContext(ctx context.Context) (*map[string]interface{}, error) + func (s *SafeAuth) GetKeyNode(ctx context.Context, req *pb.GetKeyNodeRequest) (*pb.GetKeyNodeResponse, error) + func (s *SafeAuth) GetKeyNodeById(ctx context.Context, req *pb.GetKeyNodeByIdRequest) (*pb.GetKeyNodeByIdResponse, error) + func (s *SafeAuth) GetKeyNodeByPath(ctx context.Context, req *pb.GetKeyNodeByPathRequest) (*pb.GetKeyNodeByPathResponse, error) + func (s *SafeAuth) GetServerVersion(ctx context.Context, req *pb.GetServerVersionRequest) (*pb.GetServerVersionResponse, error) + func (s *SafeAuth) NewApiServer(gServer *grpc.Server) error + func (s *SafeAuth) ReEncryptKeyNode(ctx context.Context, req *pb.ReEncryptKeyNodeRequest) (*pb.ReEncryptKeyNodeResponse, error) + func (s *SafeAuth) SetDatabaseConnection(sqlDB *sql.DB) + func (s *SafeAuth) SetLogger(logger log.Logger) + func (s *SafeAuth) SetPublicKey(publicKeyFile string) error v0.9.1 Dec 20, 2019 Changes in this version + var NotImplemented = errors.New("not implemented") + func GetInt64FromClaims(claims *map[string]interface{}, key string) int64 + func GetStringFromClaims(claims *map[string]interface{}, key string) string + func NewSafeboxAuth(safeService pb.MServiceSafeboxServer) *safeAuth