Skip to content

Getting started

This guide takes a Tekla Structures plugin from nothing to a protected plugin: only the users you allow can open it, and only with the builds you uploaded. It takes about fifteen minutes.

  1. Open app.plugboard.cloud/register.
  2. Choose a plan (Free needs no card), then fill in Company or workspace name, Your name, Work email and a password. Disposable email addresses are not accepted.
  3. Accept the terms and click Create workspace.
  4. Open the link in the verification email.

An application is one plugin, e.g. “Rebar Exporter”.

  1. Open Applications and click New application.
  2. Under Settings, choose the Login lifetime: how long a login stays valid, also offline, before the user has to sign in again.

Plugins shipped together in one .tsep package go into an application group; see Package releases.

In the plugin project (.NET Framework 4.8), add the package:

Terminal window
dotnet add package Plugboard.Authenticate.Client

Configure it once, in the plugin’s static constructor, and ask for a login before the plugin does its work:

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Tekla.Structures.Plugins;
using Plugboard.Authenticate.Client;
[Plugin("RebarExporter")]
[PluginUserInterface("RebarExporter.MainWindow")]
public class RebarExporterPlugin : PluginBase
{
static RebarExporterPlugin()
{
Auth.Configure(new AuthenticatorOptions
{
BaseUrl = new Uri("https://app.plugboard.cloud/"),
PluginAssembly = typeof(RebarExporterPlugin).Assembly,
ApplicationName = "Rebar Exporter", // shown in the login window
});
}
public override bool Run(List<InputDefinition> input)
{
// Run() is synchronous; wait for the login without blocking WPF's message loop.
var loggedIn = Task.Run(() => Auth.EnsureLoggedInAsync()).GetAwaiter().GetResult();
if (!loggedIn)
{
return false; // the user cancelled the login
}
// ... the plugin's work, as before ...
return true;
}
}

No API key or signing keys are needed in the plugin: Plugboard recognises the plugin by its DLL and the library checks the server’s signatures itself. In a WPF window, call await Auth.EnsureLoggedInAsync() in the Loaded handler instead. All options are in the Login library reference.

Build the plugin in Release mode, then:

  1. Open the application → Versions.
  2. Drop the plugin DLL on the upload area. Leave Version empty to read it from the file.
  3. Click Upload version. Tick Publish now only when you want to announce it to users.

Plugboard recognises each build by its file, so upload every build you ship, even a rebuild of the same code. A build that wasn’t uploaded, or was changed after the upload, can’t sign in. To upload from a build pipeline, see Upload from CI.

  1. Invite your team under Users → Add user (they get an email to set a password).
  2. Open the application → Allowed users → Add users, and select who may use the plugin.

Only these users can open the plugin. For a group, users added to it can use all its applications.

  1. Copy the plugin to your Tekla extensions folder and run it.
  2. The login window opens and the browser asks you to sign in to Plugboard (with two-factor authentication or a passkey, if you have set one up). Confirm the login.
  3. The plugin runs. Later starts don’t ask again until the login expires, and work offline too.

In Plugboard, the application’s Active logins tab now shows your login with the version and the PC.

Then try what is refused:

  • Sign in as a user who isn’t in Allowed users: the login is refused.
  • Rebuild the plugin without uploading the new build: it can’t sign in.
  • Under Active logins, log yourself out, or Block the version under Versions: the next time the plugin starts while online, it asks for a new login or a newer version.

Something not working? See Troubleshooting.