-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate and validate Reva tokens from Reva #2525
Comments
@labkode my idea was also to add a scope to the token in cs3org/reva#2058. The token shouldn't have that much permissions for just opening one file and writing two lock files. And in the app provider we have that information to limit the scope. |
@labkode, I totally agree and would love to tackle this. 👍 |
@C0rby can you jump into this from the OCIS side? @ishank011 will provide a new implementation for tokens in Reva to unblock the integration with some apps but we need this development in OCIS to have the full workflow working. |
Just to be sure, the token used by WOPI can definitely be scoped down but it shall have more permissions than the above: essentially full access to the container/folder where the file is located. This in order to support "Save as" operations ( |
@C0rby I think the Ref cs3org/reva#2028 |
OCIS hacks the ways tokens are supposed to be used by relying on the internal implementation of Reva, which currently uses JWT, this makes it impossible to change underlying session storage.
Plus, the defaults are not the same in Reva, which provides different expiration times depending what authentication method you use (basic vs bearer (oidc)).
These are all the places that must be cleaned:
The reason why the WOPI tokens had an expiration date of 1 minute is because this value is hardcoded in:
https://github.com/owncloud/ocis/blob/master/proxy/pkg/middleware/account_resolver.go#L26
@wkloucek
Fixing this value avoids this workaround:
cs3org/reva#2058
@C0rby can you take this on and call the Authenticate call in Reva rather than doing this workaround?
The text was updated successfully, but these errors were encountered: