cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CDC Hosted Page OIDC - no consent page

jctapnio
Explorer
0 Kudos

Hi All,

I am trying to make an OIDC login using Hosted Page. I am getting an error like in the image below. I know that the consent should be encrypted and then I created a consent page.

Now my question is, how to let the gigya.oidc.js SDK know the consent page to automatically redirect the page if consent is needed?

In localhost all I need to do is this code. How to do it in Hosted Page?

<script
      type="text/javascript"
      lang="javascript"
      src="https://cdns.gigya.com/JS/gigya.oidc.js?apiKey=<API_KEY>"
    >
      {
          loginURL: "http://localhost:3000/login",
          consentURL: "http://localhost:3000/consent",
          errorURL: "http://localhost:3000/error"
      }
</script>
<script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/JS/gigya.oidc.js?apiKey=<API_KEY>" > { loginURL: "http://localhost:3000/login", consentURL: "http://localhost:3000/consent", errorURL: "http://localhost:3000/error" } </script> <script type="text/javascript" lang="javascript" src="https://cdns.gigya.com/JS/gigya.oidc.js?apiKey=<API_KEY>" > { loginURL: "http://localhost:3000/login", consentURL: "http://localhost:3000/consent", errorURL: "http://localhost:3000/error" } </script>

And another question is, how to import a library in the screenset of the consent page to create the consent signature?

View Entire Topic
iandotha
Discoverer
0 Kudos

Hi Jonathan,

The page displayed when the RP calls the OP's /authorize endpoint is defined in the OP configuration.

Only in the case where you need to override that page for a given RP(s), you can configure that in the RP, in the 'proxy page override' section.