Forum Discussion

David_Gill's avatar
Aug 17, 2022

Client-Initiated Forms SSO javascript

I have a website which requires SSO. I am not a javascript programmer however my understanding is that it uses angularjs. I see the following code requesting the userid and password:


<div class="panel-body">
  <div class="form form-inline" style="max-width: 200px; margin: auto;">
    <input type="text" class="form-control" ng-model="credentials.userid" id="loginUserid">
    Password: <input type="password" class="form-control" ng-model="credentials.passwd" ng-keypress="checkEnter($event)">
    <button type="button" class="btn btn-primary" ng-click="login()">Login</button>


When the user presses the login button, I see the following payload being posted to the server:


{action: "login", userid: "myuserid", passwd: "mypassword", junk: "2022-08-17T14:13:52.815Z"}
    action: "login"
    junk: "2022-08-17T14:13:52.815Z"
    passwd: "mypassword"
    userid: "myuserid"


I am using Client Initiated Forms based SSO. I am able to detect the login page as well as a successful login however I do not know how to send the json object above. I am looking for help with the extra javascript which I believe needs to be added.



APM v16

2 Replies

  • Sadly this functionality hasnt been built in yet.  There is a Request for Enhancement / BugID so perhaps call in a support ticket and see if you can pile onto it and see if it gets some traction.  Bug 747123 Support JSON and XML form formats in APM Forms based SSO.  I think that is what is needed.

  • Try add string login() as an extra javascript injection in form definiton