Getting user specified value from power box

8 views
Skip to first unread message

Jay Gischer

unread,
May 25, 2021, 5:28:39 PM5/25/21
to Sandstorm Development
I have been successful in launching a powerbox (for a url), getting the claim token, exchanging that for an access token and using the access token to access the canonical url via the bridge proxy.  All that worked as described.

However, the powerbox allows (and I want to make use of) the user the ability to specify a url other than the canonical url.  How do I find out what url has been specified ? I can't see where this is addressed in the documentation, and an examination of the response message doesn't appear to have it.

Ian Denhardt

unread,
May 25, 2021, 7:08:27 PM5/25/21
to Jay Gischer, Sandstorm Development
Quoting Jay Gischer (2021-05-25 17:28:41)

> However, the powerbox allows (and I want to make use of) the user
> the ability to specify� a url other than the canonical url.� How
> do I find out what url has been specified ? I can't see where this
> is addressed in the documentation, and an examination of the
> response message doesn't appear to have it.

Right now there's now way to get this information. In theory, the
server-side SessionContext.request() method could return this
information, though that's unimplemented. It might make sense to extend
claimRequest() to also return a PowerboxDescriptor like request()
(hypothetically) does. How to plumb that through the bridge's API is
another question.

That said, may I ask what you want the information for? Ideally, apps
should try to avoid caring, instead just relying on the interface they
asked for -- they should work regardless of the concrete object that was
chosen. (I can't say I'm surprised there's some snags in practice
though).

-Ian
Reply all
Reply to author
Forward
0 new messages