Remote Login API craig.e.parman  2019-03-28 12:27
Status: Closed
 

Hi am trying to test the Remote Login API as described in the documentation here:

https://www.labkey.org/Documentation/wiki-page.view?name=remoteLoginAPI&_docid=wiki%3A32d706ed-ed56-1034-b734-fe851e088836

I have tried it on my hosted trial version and on a local VirtualBox VM. No matter what I put int for the returnUrl I get

"Error: a valid returnUrl was not specified."

Is there a configuration setting I must use?

Thanks,
Craig

 
 
Jon (LabKey DevOps) responded:  2019-03-29 09:29
Hi Craig,

The feature works, but you will need to configure the external redirect by whitelisting it within LabKey.

As of 19.1.X (https://www.labkey.org/Documentation/wiki-page.view?name=releasenotes191), we've added a new feature that allows admins to enable certain URLs to be allowed redirects.

Please take a look at our doc here regarding the feature and how to use it:

https://www.labkey.org/Documentation/wiki-page.view?name=externalRedirectsURL

If you insert the domain name of the site you're trying to use in the returnUrl, then perform the necessary steps as outlined in the remoteLoginAPI doc, the feature will work as expected.

Regards,

Jon
 
craig.e.parman responded:  2019-03-29 10:12
Thanks! That did the trick.

Craig