fyi.opensocial.getViewer

Who is asking: by the console's session cookie, or their service auth. Nothing, for no one. As knotless's getViewer, for the console to show who is signed in.

Details · query
Kindquery
Authorityopensocial.fyi
Indexed

Query

query · GET

Parameters

query string

Output

application/json

Who is asking, with the handle their DID document names and canCreateGroup; absent when no one is.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Who the caller is signed in as. The session cookie carries an opaque id and nothing else (ADR 0034 §2), so this is how a client learns its own DID — it cannot read one out of the cookie, by design. Answers 200 with `signedIn: false` rather than 401 for an anonymous caller: not being signed in is an ordinary state of the application, not an error in the request.

  • Get a person as a view names them. Requires auth. Answers for the caller themselves, or for anyone the host shows — a member of a group it runs, or someone asking to join one.

  • Who is asking this appview, as its pages show it.

  • Return the authenticated viewer's identity along with any opaque flags clients may use to gate UI.