Connect and manage the site admin connection
Let Fleet read a site's installed plugins and update status, then reconnect before it expires or disconnect.
Let Fleet read a site's installed plugins and update status, with your approval on the site.
Before you start
- You are an Owner, Admin or Developer. See Roles and permissions.
- The connection is optional. Without it Fleet reads the plugins and the update status from the site's repository, and health checks work as before. See The optional site admin connection.
- You can sign in to the site's own EmDash admin as an administrator. The site answers at an active custom domain or at its workers.dev address.
- The scope is
admin, the narrowest EmDash scope that reaches the plugin routes. A token with it can do whatever a site administrator can, writing content, settings and users included. Fleet calls only three read routes, once an hour, and never writes.
Steps
Connect.
- Open the site page and select Connect site admin.
- Fleet registers a public OAuth client named Fleet for EmDash on the site and sends you to its sign-in page. Sign in as an administrator.
- Approve the scope
adminon the site's consent page.
Reconnect. Repeat the connect steps, starting with Reconnect site admin on the site page. Do it before the connection expires, or after. If the site's address changes, Fleet disconnects without sending a token, and you connect again.
Disconnect.
- Select Disconnect in the site admin panel of the site page. Fleet deletes the stored tokens and asks the site to revoke them.
- To end the access whether or not the site confirmed the revocation, have another administrator of the site disable, then enable, the EmDash user who approved the connection. EmDash deletes every OAuth token of a disabled user.
- Check the panel. Fleet no longer shows installed plugins read from the site.
Deleting the OAuth client named Fleet for EmDash on the site stops new connections but does not end the tokens already issued (EmDash 1.5.0). An unrevoked refresh token stays valid for up to 90 days.
Result
Within an hour, the Plugins tab and the site page show the installed plugins and update status read from the site. The access token is valid 3,600 seconds and the refresh token valid 90 days. Fleet refreshes the access token itself.
Fleet marks the connection expired when a refresh fails or the refresh token reaches 90 days. The site page then shows Reconnect site admin. After a disconnect, Fleet reads the plugins from the repository again, and registry plugins show as not visible to Fleet.
If something goes wrong
Before the connection expires, Fleet sends this notice with the date. Reconnect before then.
The site admin connection of <site> expires on <date>. Reconnect it before then to keep seeing installed plugins and update status.
When the date is not known:
The site admin connection of <site> expires soon. Reconnect it before then to keep seeing installed plugins and update status.
After it expired, the site page shows:
The site admin connection of <site> expired. Reconnect it to see installed plugins and update status.
If the consent page does not appear or the sign-in fails, sign in on the site as an administrator and start again.