- Issue created by @marcus.williams
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
Hmmm
Are you logged in as the same user that created the preview, using something like simple oauth?Or are you trying to view the preview anonymously?
I'm using https://www.drupal.org/project/next β which I'm currently trying to modify to work with node preview, so yes it does use oauth but is setup with it's own user, so won't be the same as the one editing the content. I guessing from your response it will only work if it's the same user.
- π¦πΊAustralia almunnings Melbourne, π¦πΊ
Yeah, it's limited to user id.
Some other modules have some pretty creative ways around it.Side-storing preview entities, invitation urls etc.
Unfortunately thats starting to shift outside this modules responsibilities.I can get onboard with using another module's API for this, just need to find a suitable candidate.
Ok thanks for the info, I'll have a look into possible solutions and let you know what I find.
- Status changed to Postponed: needs info
about 1 year ago 3:56am 19 September 2023 - πΊπΈUnited States jmolivas El Centro, CA
interested in this issue and having a way to make the node preview url available for other users not only the one updating content.
after a quick search I found this https://www.drupal.org/project/public_preview β not sure if this can help
- Assigned to almunnings
- Status changed to Active
11 months ago 10:55pm 7 January 2024 - π¦πΊAustralia almunnings Melbourne, π¦πΊ
I'm going to make some modifications in this ticket as a pre-emptive change to support a side project/module that can enable hash based URL access to other user's node previews.
- πΊπΈUnited States jmolivas El Centro, CA
Found this other module https://www.drupal.org/project/preview_link β I have not yet tested this or the previous one I mentioned.
- πΊπΈUnited States jmolivas El Centro, CA
Before adding an extra module I have been playing with current implementation and it works properly, we added a new service to grant current user and pass the token to the iframe
I am attaching images to show how this looks like
NOTE: We are using Remix instead of Next but the Framework implementation should change that much since both are React based
-
almunnings β
committed 0fc27ed1 on 2.1.x
Resolve #3385029 "Node preview permissions"
-
almunnings β
committed 0fc27ed1 on 2.1.x
- Status changed to Fixed
11 months ago 11:56am 12 January 2024 - π¦πΊAustralia almunnings Melbourne, π¦πΊ
Howdy doodie,
I've shifted responsibility for this ticket into a submodule.https://www.drupal.org/project/graphql_compose_preview β
Mostly because the requirements don't quite fit within "normal drupal", and I can get away with more junk in the extra contrib module.
It's a WIP, but please feel free to open issues in that module moving forward.
It's very-much a moving target at the moment.https://www.drupal.org/project/graphql_compose_preview β (dev release available)
https://www.drupal.org/project/graphql_compose_preview/issues/3414296 β¨ Feature ideas ActiveYee haw
Automatically closed - issue fixed for 2 weeks with no activity.