Skip to content

Guest link renewal should tell whether a PIN was sent #3786

Open

Description

@JammingBen

Is your feature request related to a problem? Please describe.

POST /v1beta1/extensions/org.libregraph/guestLinks/renew always responds with an empty 200. The guest gets an email with a PIN only if the request is authorized by a valid session cookie for the share.

The client needs to know whether a PIN was sent, so it can show a PIN form instead of asking the guest to open the link from the email. The session cookie is http-only, so web can't check it and has to guess from the session expiry it remembers from the last token or PIN verification.

If the guess is wrong, the guest either gets a PIN form without a PIN in the email, or a PIN in the email but no form to enter it.

Describe the solution you'd like

On success, the renew endpoint responds with a body that says whether the email contains a PIN, e.g.:

{ "withPin": true }

withPin is true exactly when a PIN was issued and sent, i.e. validSession was true and the renewal went through. In every other successful case, including the one where nothing was sent because the newest link can still be redeemed, it is false. This keeps those cases indistinguishable to callers without a session, as they are today.

Activity

  1. JammingBen commented on Oct 22, 2026

    @JammingBen
    MemberAuthor

    @maki5 Do you have any objections here? We can live without it, but it would make the implementation of opencloud-eu/web#3983 a bit easier.

  2. maki5 commented on Oct 22, 2026

    @maki5
    Contributor

    sounds ok to me, will implement

  3. self-assigned this
    on Oct 22, 2026
  4. moved this from Qualification to Needs Review in OpenCloud Team Boardon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions