on 08-19-2015 1:05 PM
Is there a way to use the logon token created through the RESTful call to pass the username/password to openDocuments URL?
This is what I have
var token = encodeURI(this.xSAPLoginToken);
var url = gui.data.Constants.BOE_REPORT_URL + '/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=' + cuid + '&sIDType=CUID&token='+token;
window.open(url);
I've tried not encoding the token and using encodeURI and encodeURIComponent. None of what have worked.
Is there a proper way to for the URL
Hi Tanya,
What's the behavior of it not working? do you end up with a logon page or an error? If you get a logon page, then it could be a problem with passing the token, but your code above looks fine. If you get an error, then there's probably something wrong with the URL.
You could try writing the URL out and then copy/paste into a new browser.
Dan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting the logon page. So it's not logging the user in automatically. No errors. URL ends up looking like this:
<servername>:<port>/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=AVR6XNxE7oVFqhEgYeOeYSk&sIDType=CUID&token=%22<servername>:<port>@%7B3&2=10037595,U3&p=42235.5597255208,Y7&4F=7265,U3&63=secEnterprise,0P&66=60,03&68=secEnterprise:<username>,0P&qe=100,U3&vz=hg5pX1qog_D2rLskxKrR4gwTKXy_MEIZqSYTjkgcu5M,UP%7D%22
Latest educational news and result updates for all institutes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.