cancel
Showing results for 
Search instead for 
Did you mean: 

login in webscript without user and password in file

cperez
Champ in-the-making
Champ in-the-making
Hi there.

I have a webscript, which removes a specific file. To remove it I have to use the admin user because other users can not.

I have the admin username and password in the file. ".js" and in the ".html.get.ftl" I make the call to service for the ticket login session and with it delete the file.

I wanted to know if there is any way to make the login without user and password in the file because it is not safe. Doing so transparently to the end user which uses a url.

Thanks a lot in advance.
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
I'm not very clear about your requirement.
If you client use dose not have permission to delete the file ,why do you let the user delete it ?

If you really want to delete it using admin accout,you still have several options :
option 1:
   Rewrite your webscript ,and make it runas admin account.
option 2
   1.Write a custom proxy servlet.
   2.When client user need to delete a file ,he/she submit delete request to your proxy servlet.
   3.In you proxy servlet ,reading admin username/password form configuration file ,and use this admin account to delete that file.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.