Encrypt the username and Password in URL
Hi
My requirement is to encrypt the Password in the URL.
http://Server_name/analytics/saw.dll?NQUser=Administrator&NQPassword=*Administrator*.
Here My URL should look like this.
http://Server_name/analytics/saw.dll?NQUser=Administrator&NQPassword=*encrypted password*.
Hi in what situation you need this?, actually this is not a good practice to expose the user name and password over the URL. Better to force the user to login and then continue.
If the user already logged in and while clicking you need to do a navigation then no need of passing username or password.
Edited by: Ugser on Sep 7, 2009 8:08 AM
Similar Messages
-
Pass the username and password in URL to auto log in the application from SharePoint List
how to Pass the username and password in URL to auto log in the application from SharePoint List
I have a link in my SharePoint list when user try to open the link its asking username and password .i want to put username and password in URL to auto log in into that external URL from sharepoint
please help me it is possibleCheck out
http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
How do i send the username and password to yahoo web page through url
how do i send the username and password to yahoo web page through url i.e as Query string so that my account in yahoo will open...
If you don't mind using a library, then download and use the Apache HttpClient library. It takes care of all these details for you.
-
How to catch exception while validating the username and password in hbm
Hi,
I do want to set the username and password dynamically in hibernate.cfg.xml
Here below is my configuration file.
{code<hibernate-configuration>
<session-factory>
<property name="hibernate.bytecode.use_reflection_optimizer">false</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="current_session_context_class">thread</property>
<property name="show_sql">true</property>
</session-factory>
</hibernate-configuration>{code}
Also im getting that session factory object like the below code.
public class Sessions { private static SessionFactory sessionFactory; private static Configuration configuration = new Configuration(); static { try { String userName = GuigenserviceImpl.userName; String password = GuigenserviceImpl.password; String hostName = GuigenserviceImpl.hostName; String portNo = GuigenserviceImpl.portNo; String sId = GuigenserviceImpl.sId; configuration .setProperty("hibernate.connection.username", userName); configuration .setProperty("hibernate.connection.password", password); configuration.setProperty("hibernate.connection.url", "jdbc:oracle:thin:@" + hostName + ":" + portNo + ":" + sId); try { configuration.configure("/hibernate.cfg.xml"); sessionFactory = configuration.buildSessionFactory(); GuigenserviceImpl.strAccpted = "true"; } catch (Exception e) { e.printStackTrace(); GuigenserviceImpl.strAccpted = "false"; } } catch (HibernateException hibernateException) { GuigenserviceImpl.strAccpted = "false"; hibernateException.printStackTrace(); } catch (Throwable ex) { GuigenserviceImpl.strAccpted = "false"; ex.printStackTrace(); throw new ExceptionInInitializerError(ex); } } public static SessionFactory getSessionFactory() { return sessionFactory; }
So, in this above scenario, suppose if im giving the wrong password means exception should be caught and the string variable "GuigenserviceImpl.strAccpted" should be assigned to false.
But im getting the SQL Exception only in console like wrong username and password. And finally i couldn't able to catch the exception in Sessions class, static block.
Anyone can help me in catching that SQL Exception in my Sessions class and i need to handle that SQL Exception in my class.
Im getting this following exception message in my console.
INFO: configuring from resource: /hibernate.cfg.xml Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration getConfigurationInputStream INFO: Configuration resource: /hibernate.cfg.xml Apr 6, 2009 2:47:00 PM org.hibernate.cfg.Configuration doConfigure INFO: Configured SessionFactory: null Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Using Hibernate built-in connection pool (not for production use!) Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: Hibernate connection pool size: 10 Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: autocommit mode: false Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@192.168.1.12:1521:orcl Apr 6, 2009 2:47:00 PM org.hibernate.connection.DriverManagerConnectionProvider configure INFO: connection properties: {user=scott, password=****} Apr 6, 2009 2:47:01 PM org.hibernate.cfg.SettingsFactory buildSettings WARNING: Could not obtain connection metadata java.sql.SQLException: ORA-01017: invalid username/password; logon denied at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:131) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:204) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:799) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:368) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:508) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:203) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298) at com.beyon.ezygui.server.Sessions.<clinit>(Sessions.java:39) at com.beyon.ezygui.server.GuigenserviceImpl.testRPC(GuigenserviceImpl.java:322) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Thanks in advance.
Thanks & Regards,
Kothandaraman N.Hi,
Myself hardcoded that username and password checking like the below code.
String name = loginData.get("userName").toString();
String pswd = loginData.get("pswd").toString();
String hstName = loginData.get("hName").toString();
String prtNo = loginData.get("portNo").toString();
String sid = loginData.get("sId").toString();
SessionFactory sessionFactory = null;
try {
if (name.trim().equals(userName) && pswd.trim().equals(password)
&& hstName.trim().equals(hostName)
&& prtNo.trim().equals(portNo) && sid.trim().equals(sId)) {
sessionFactory = Sessions.getSessionFactory();
strAccpted = "true";
} else {
strAccpted = "false";
} catch (Exception e) {
e.printStackTrace();
strAccpted = "false";
}I have my own values in string objects, then comparing that values with the values from login form. If both values are matching, then i will do configurations in hibernate.
ResourceBundle resourceBundle = ResourceBundle
.getBundle("com.beyon.ezygui.server.Queries");
public static final String connection_url = resourceBundle
.getString("connection.url");
public static final String userName = resourceBundle.getString("userName");
public static final String password = resourceBundle.getString("password");
public static final String hostName = resourceBundle.getString("hostName");
public static final String portNo = resourceBundle.getString("portNo");
public static final String sId = resourceBundle.getString("sId");The above are the String objects i'm checking for the match with values from login form.
Thanks & Regards,
Kothandaraman N. -
Entering username and password in URL, 4400g, v5.2 ??
Hi,
I am trying to display contents of a website which requires me to login each time i exit the webpage.
Is there a way to include the username and password in the url itself or is there a way to change the DMP web account to match the username and password which is needed for the website?
I already tried using the format http://username:[email protected]Sorry, this type of functionality is not available on the DMP.
A lot of the responsibility resides on the Hosting Site on how it
accepts the authentication or Login credentials. A web or app savy
developer could probably develop a App (like for iPhone or iTouch)
which could bring up a Virtual Keyboard which could be used with
the DMP-4400G and a supported Touchscreen. Then the user could
add the credentials using the touch screen.
Cheers!
If this answers your question, Please take time to mark thisdiscussion answered & rate the response.
Thank You!
T. -
Logging on ISA with username and password in URL
Hi!
We have a scenario where a customer have an internal portal and from this portal they access different suppliers webshop and get automatic access since the username and password is supplied in the URL.
In our current Online Store solution we use a special log on page and the user gets logged in, but how is this possible in ISA?
Regards
rolloHi!
The correct answer should be YES, it is possible!
It is not related to what Florian wrote, just simly add the userid and password in the URL.
Exemple
https://mybigcompany.com/b2b/b2b/init.do?language=sv&userid=rollo&password=mytopsecretpassword
The only negative issue is that the first log on will not work, the user get an errormessage and have to enter the log on data again.
Message was edited by:
rollo -
Getting the Username and password Of Enterprise Portal in WebDynPro
Hi Friends,
I have developed one webdynpro application to read the excel sheet from KM Repository. i have used URL to open the connection to that excel file and to get the Inputstream.
While opening the connection to the excel, I've hardcoded the username and password. I need to get the username and password of the user who login into the Enterprise portal and runs that application. then i need to pass that username and password along with URL of the Excel sheet.
Could you people find the solution and replied to me. I am waiting for your bright answer.
Thanks and Regards,
Sandeep Kumar Bonam.A very standard question in this forum.
Refer this :
Re: How to get User Id in Web dynpro application
Regards,
Subramanian V. -
Passing the username and password via report link
How can I pass the username and password via the reprt link?
thanks all.
Ahmad EsbitaHi,
Jigar Oza
Thanks for u r reply, i have tried with application integrator but there is a problem with usermapping.
now what i have done is created HTTP System based on this system created URL iView,in application parameters username and password as MappedUser and MappedPassword every thing is working fine. user logged in automatically when he logged into portal.
there are tabs ,links in application .when i click on tabs or links it is assking to enter username and password of the application.
did i do any thing wrong in creating HTTP system or URL iView,
what are the necessary properties should be given.
replys are highly appreciated.
Regards
K Naveen Kishore -
Dynamically pass the username and password to report server to invoke reports
Hi
The scenario is as follows:-
9iAS is installed under - Windows 2000 (web server and report Server 6i) and everything works fine.
We have developed a page using pl/sql cartrige (oracle 8i), from that a report is invoked with some parameters. However, the userid and password is stored under keymap file (cgicmd.dat).
Is there anyway to pass dynamically the username and password to report server in order to invoke the report.?
Can any one advise?
nullCheck out
http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com -
How can i clear the usernames and passwords history from all login websites?
how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)
See:
http://kb.mozillazine.org/Deleting_autocomplete_entries
http://kb.mozillazine.org/Password_Manager -
Can't get face time to work. Know the username and password are right. Asks me to sign in...verifying... And then goes back to sign in...
One thing that worked for me:
launched Message app which uses the same backend as Facetime. If it launches, click on the video. May display a Error Dialog. Call AppleCare and give them the number displayed. This will give them the needed info to check your AppleID account for the messaging servers
For some reason FaceTime did not display this error, yet once I gave the Support person the number it was fixed in just a minute.
YMMV -
Dear Apple
I buy a refurbish iPhone 5s the IMEI ******** and ICCID ********** and i restored the device when i restored its locked to iCloud and i don't know the username and password i hope to help me about the problem asap.
Best regard
<Edited by Host>This is a user forum. You aren't talking to Apple here.
Return your iPhone for a refund. There is no way to remove the Activation Lock. Apple won't get involved.
<Edited by Host> -
What is the username and password for the web page on the hp deskjet 2540 printer?
I need to administer my Deskjet 2540 through my web browser, but do not know the username and password. When it says log in it says 'The server http://[ip adress] requires a pasword. The server says: admin.' I have tryed to use admin as the usermane and no password but it does not work. Is there a way to reset the pasword?
ThanksHello there @Aokvilla , Welcome to the Forums!
For the issue you are having, I would recommend trying a different web browser for starters, and if that doesn't help, follow the instructions below from another post with a resolved solution. If those steps don't help, the problem could be your router.
HP printer requires a username and password by @pcwizard
Good luck!
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
After starting OEM and entering the username and password , it is showing error : java.lang.ClassNotFoundException: _database._instance._sitemap._sitemap
>
Your reply might be useful, but it is still not a suitable answer for my question. >You might try reading it again, because you've absolutely missed the point.
>
I am familiar with NetBeans, because I have built many websites by this tool before, I don't want to change to other IDEs, ..>Nobody suggested 'another IDE'.
Oh, and your 'hurry' is none of my business or concern. But if you are in such a gosh-darn hurry, it might be useful to read replies carefully - otherwise you might end up wasting a great deal of time. -
Hi I bought an iPhone from my friend who forgot the username and password, and now my iPhone Aktyvyshn code and that it wants to register Forgot your password to her email, please guide me
You can NOT do so. Only the owner of the account used to lock the phone can remove it. Instructions for how to do so can be found within or linked from within the document I already linked to.
Activation lock is an anti-theft feature designed to make the device useless to anyone other than the rightful owner.
If your friend refuses to give your money back and can not or will not remove the activation lock, there is a fair possibility that the phone was not theirs to sell in the first place.
Maybe you are looking for
-
60 gig ipod video, unable to view photos
No problem downloading photos from selected folder useing ipod options/photo. However when I select a folder of pictures from the ipod the thumbnails are blank, and when I select a photo and try to view it the ipod freezes, gets noticably warmer,ther
-
Hi Gurus, I am new to BW, and SEM BPS. Please can provide some documentation on SEM BPS which gives some kind of basic ideas and Best Practice. Thanks in advans... Regds Sam
-
Does any one know what code gets executed and what packages get called by the Asset WorkBench form when a standard transfer (for a transaction that will dynamically generate a CCID) is performed. This is for Rel 11 Financials. My client wants to cust
-
Hi Friends, Just clarification on undo (11g) I set undo retention to 15 mins. user A performs transaction without commit and the old data is in undo for read consistency. when user B performs select query on user A's transaction it gives old data for
-
I want to crop an image via code.I want my user to be able to do this by entering a width in a text input box and the image to be cropped, not masked as i will need to layer the cropped images on top of one another. New to Flash but plenty of experie