Replies: 3 comments
-
|
Playing around with this some more and for some reason I'm getting a 404 if I include the JWT token for access_token which seems weird. I'm not sure if it's NGROK blocking the request considering that I don't see an incoming request on my setup. When it defaults to the "Anonymous" example, it hits again. When I use the URL (with just the access_token) in the query string without the Bearer, I get a 401, so clearly not NGROK blocking it for some reason. Seems super weird (just ramblings of a madman, ignore me) |
Beta Was this translation helpful? Give feedback.
-
|
Looks like if you're using a security token / JWT token for access_token, the ExecuteTestMethod throws a 404. So I'm assuming there is some kind of limit on this and you can't use a JWT token in here. |
Beta Was this translation helpful? Give feedback.
-
|
As per the docs:
You pass the access token from the host page (web app under your control) to the WOPI Client (office online). WOPI client uses it for authnz against the wopi host (web API under your control). In my implementation:
The implementation is not complete yet. I might take inspiration in the official https://github.com/OfficeDev/PnP-WOPI example.
The wopibootstrapper is not finished yet either.
You'll always need a host to serve the files and a client (page/frame) to host the WOPI client. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
May be a dumb question, but I'm asking anyway :)
The web app I'm playing around with already has authentication through JWT (my own provider)
I've deployed the WopiHost locally, with the WopiHost.Web on a separate instance on IIS. at a first stab, the WopiHost is replying with 401 Unauthorized. I haven't delved too much into it as they're just samples.
I'm assuming I could use my own JWT token and pop it into ViewData["access_token"] for an authenticated user and it should just work? Or am I missing something entirely here?
I'm also assuming there's still some work to do on the WopiBootstrapperController to implement this still? Or does the Controller do nothing at this stage to facilitate authorization?
I'm just looking to bring this into my own project without having to "hack" anything, preferably under the same Web project so I don't have to have both a Host and a Client.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions