fission-codes / auth-lobby

The authentication service that Fission services run.
https://auth.fission.codes
GNU Affero General Public License v3.0
12 stars 1 forks source link

Add raw permissions #78

Closed bgins closed 3 years ago

bgins commented 3 years ago

Summary

This PR fixes/implements the following bugs/features

This PR adds a request for raw permissions and creation of UCANs for these resources.

The permissions request shows JSON permissions to the user that they must interpret. The raw permissions can be shown with filesystem permissions (they show up at the bottom) or on their own.

If the permissions cannot be decoded from URL-encoded base64 or the JSON is malformed, the user is shown and error message and they request for permissions is ignored.

Test plan (required)

We currently have one app that requests raw permissions: https://github.com/fission-suite/filecoin-backup. After signing in with that app, go to the transactions page and click "Request Permissions" in the notification at the top of the page. That will take you to the auth lobby with a request for raw permissions.

After Merge