10 Commits
Author SHA1 Message Date
David Renshaw 28626b2035 Link to non-http-bridge examples. Reorder. 2016-08-19 17:15:28 -04:00
David Renshaw 929a52cf96 docs about permissions and roles 2016-08-17 18:17:36 -04:00
David Renshaw f1abc7039c update documentation 2016-07-18 15:12:11 -04:00
Kenton Varda 3013905ffc Implement tabId to correlate sessions in a grain tab.
In the future, a grain tab may in fact be displaying multiple grains at once, and thus multiple sessions. This can happen when the Picker Powerbox is displaying an embedded picker, or when a grain embeds other grains (e.g. the "Tabbify" proposal). It may also be useful for a single grain to recognize server-side when multiple sequential back-end sessions actually come from the same tab, as occurs e.g. when the user suspends their laptop and then comes back later without refreshing their browser.

In some cases it may be helpful if these grains can recognize that they live in the same tab. Hence we generate a `tabId` which is passed to `newSession()` and uniquely identifies the tab.

The current motivating use case is one where the Powerbox is being used in an authentication interaction: The app wishes the user to "verify" their email address via a powerbox query. The user chooses which address to verify, and a verification capability is returned. We need to make sure the app cannot take this verification capability and pass it off to other users who can then "authenticate" as the address to other apps. To do that, each app needs to be able to check that the verification was actually created by this session's user. We could do this by attaching verification to user IDs, but that would not work in the case that the user is anonymous. Tab IDs are assigned even to anonymous users.
2016-03-15 22:16:34 -07:00
Asheesh Laroia e83a1d019b docs: Mention comma-separated permissions 2016-02-24 11:03:19 -08:00
Asheesh Laroia c558d9a1cd Add documentation for offer templates 2015-10-19 15:16:57 -07:00
Kenton Varda 80648581ca Increase preferred profile image size to 512x512.
Turns out the reason Github was serving me absurdly large image files is because my own avatar was a photo encoded as a PNG. That ought to be unusual so there's no need to cap this so tightly.

Google serves 512x512 by default. Github serves 460x460 for some reason, but fine, close enough.

Also fix jpeg content sniffing.
2015-08-03 18:58:42 -07:00
Kenton Varda 4a51c6f4a2 Tweaks 2015-08-03 15:56:09 -07:00
Kenton Varda 1baac92ecd Pass along the user's profile info to apps as new headers. 2015-08-03 15:35:45 -07:00
Asheesh Laroia a5cb808aaf Move User Authentication doc into docs/developing 2015-07-14 15:12:45 -07:00