-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Package hocuspocus sync parameters #21706
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
Conversation
|
@judithroth @akabiru asking for an early review, not sure if this is how it's going to look when ready |
You're right 🤦, my bad. Too many things at once. I editted the message |
judithroth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far this looks good for me! It would be nice to also have some tests here, but I think that could be a separate PR so we get this out faster.
| resource_url: @resource_url, | ||
| oauth_token:, | ||
| readonly: @readonly, | ||
| exp: 20.minutes.from_now.to_i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this only expires the token_payload, not the token itself, I think 20 minutes are too long. I'd rather go for 5 minutes here.
| @@ -43,7 +43,7 @@ | |||
| component.with_main(classes: "op-document-view--main") do | |||
| flex_layout(align_items: :center) do |flex| | |||
| flex.with_row(classes: "op-document-view--header") do | |||
| render Documents::ShowEditView::PageHeaderComponent.new(document, project:, state:, readonly:) | |||
| render Documents::ShowEditView::PageHeaderComponent.new(document, project:, state:) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
aa20c31 to
7a1b660
Compare
|
Closing in favour of #21720 |
Counterpart of opf/op-blocknote-hocuspocus#32
What are you trying to accomplish?
Package parameters from rails counterpart so that we can properly validate them in Hocuspocus
What approach did you choose and why?
The parameters are packaged into a JWT using symmetric signatures to allow validation.
Merge checklist