AnsweredAssumed Answered

Accessing other fmp:// URL parameters

Question asked by michaelmoore on Mar 15, 2016
Latest reply on Sep 20, 2017 by Johan Hedman

Hello,

 

Is there any way to access URL parameters that don't start with a dollar sign, or to access the whole fmp:// URL that was used to trigger a script?

 

eg. I need to extract the value xyz from the code parameter from this URL:

 

fmp://$/TestFile.fmp12?script=testScript&param=abc&code=xyz

 

I'm not in control of the code=xyz part of the url, so I can't change it.

 

 

Background:

 

I'm implementing Oauth2 in a web viewer.

 

The Oauth2 server will happily send my users to an fmp:// URL so that I can handle the second leg of Oauth2 with a script, but they're being smart about appending the auth code to my fmp URL, and making sure that any open parameters are closed before appending.

 

Outcomes