This PR fixes/implements the following bugs/features
[x] Add raw UCANs
[x] Add raw permissions request to authorisation page
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
[ ] Does this change invalidate any docs or tutorials? If so ensure the changes needed are either made or recorded
[ ] Does this change require a release to be made? Is so please create and deploy the release
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