Skip to Content
0
Jul 01, 2018 at 08:16 PM

Calling Rest APIs in a Javascript Policy

106 Views Last edit Jul 01, 2018 at 08:17 PM 2 rev

Hello community,

is it possible to call a Rest API in a Javascript Policy? I tried to include "Jquery" in my Javascript policy but it gives several errors that "document" and "window" are not defined.

I also tried with "XMLHttpRequest" but this is not defined as well.

So what else can I try?

Is it possible to use the defined destinations of SCP?

The background is :

I receive an email address in my policy in variable client.cn and want to check in my SAP Cloud Identity tenant if the user is existing there. Therefore I want to use the SCIM Rest API.

Best Regards,

Chris