Method ProtectConsent(ConsentTicket)
Mints a signed consent ticket. The authorization server issues it (after it has
decided consent is required) so that the consent page can render — and be granted —
only from server-supplied, tamper-proof parameters. Before this, the page rendered
app_name/scopes straight from the query string, so a crafted
/consent?app_name=Your%20Bank&client_id=attacker link showed the
operator's own trusted UI attributing an attacker's client to a familiar name. The
ticket also carries the user it was minted for, so the grant POST can refuse a ticket
replayed under a different session. A distinct protector purpose keeps it
non-interchangeable with session tickets.
public string ProtectConsent(ConsentTicket ticket)