0 Replies Latest reply on Apr 18, 2018 9:28 AM by zlristovski

    Azure SSO to Jive using POST Request

    zlristovski

      Hi,

       

      I am trying to login to mysite.jiveon.com using Azure SSO with POST request because I don't want the standard Microsoft Login page to be opened.

       

      This is my code:

       

      function callJive() {
              $.ajax({
                  type: 'POST',
                  url: 'https://mysite.jiveon.com/',
                  crossOrigin: true,
                  beforeSend: function (xhr) {
                      xhr.setRequestHeader('Access-Control-Allow-Origin', '*');
                      xhr.setRequestHeader ("Authorization", "Bearer <% =accessToken%>"); 
                  }
              }).done(function (data) {
                  alert(data);
              });
          }
      

       

      accessToken value is generated from Azure SSO for the user who requires access. When I execute this code I get cross origin error.

       

      Also I've tried and to use following form but also it was unsuccessful:

       

        
                         

       

      How to solve this, is it possible?