docs(oo): comment where the new helpers are used

- link.go/links.go: third-party doc packs (fileid links), id-stability caveat
- auth.go AuthenticateAs / users check: email-vs-userName login finding
- projects files replace-in: version-history rationale
This commit is contained in:
2026-09-22 22:41:14 +01:00
parent df38b75011
commit 520d6d05c8
5 changed files with 33 additions and 5 deletions
+4 -2
View File
@@ -103,8 +103,10 @@ func (c *Client) authenticateOnce(ctx context.Context) error {
// token, and the portal error otherwise.
//
// OnlyOffice accepts either the userName or the account email as the login. On
// some portals the userName login fails while the email works — use this probe
// to tell them apart before sharing credentials.
// the arc-1 portal (office.produktor.io) the account userName login returns
// HTTP 500 "User authentication failed" while the account email succeeds —
// confirmed for a freshly created guest user. Use this probe before sharing
// credentials (see `oo users check`), and prefer the email as the login.
func (c *Client) AuthenticateAs(ctx context.Context, login, password string) error {
body, err := json.Marshal(Credentials{User: login, Password: password})
if err != nil {