Post

1 follower Follow
0
Avatar

Login Authentication via URL

Hi ,

Is there any way to authenticate user login to apprenda directly via a URL.
Basically, i want to re-direct user to the apprenda system from a different 3rd party application but avoid the login page and do the authentication via a URL and establish the session.

Yash Kedia

Please sign in to leave a comment.

1 comment

0
Avatar

I am trying to integrate my application with Apprenda. I want to authenticate users from my system and directly redirect them to the applications in Apprenda, bypassing the login page of Apprenda. I am tried using the REST API call to make from the client of my application but i am getting the error message as

XMLHttpRequest cannot load https://apps.test.atosdemo.net/api/services/json/r/authentication(v1)/CitadelService/IJSONAuthenticationService/Login/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://atosnacloudpov.service-now.com' is therefore not allowed access. The response had HTTP status code 502.

Below is the code used at client:

var user = "";
var pw = "
";
var authToken = null;
$j.ajax({
url: 'https://apps.test.
*.net/api/services/json/r/authentication(v1)/CitadelService/IJSONAuthenticationService/Login/',
type: "POST",
contentType: 'application/json',
data: JSON.stringify({ "Username" : user, "Password" : pw, "Type" : "SaaSGrid"}),
success: function(data)
{
authToken = data.Token;
alert(authToken);
}
});

Any suggestion or help is appreciated.

Thanks.

Yash Kedia 0 votes