When a user enters the login and password I can not display his profile (information from the database) in the next page, I used SQL Adapter to ensure the connection with the database, but until now the only thing that I can do is to visualize the information using an "alert" in JavaScript not in the page that follows the page of authentication.
I'm using Dojo if it is necessary to mention.
As you did not ask anything technical, I will point you to the Getting Started material. Familiarize yourself with Worklight adapters and authentication concepts (also look at the sample applications). If you then have a technical question, ask.
Worklight Adapters
Authentication in Worklight
To display data retrieved via a SQL adapter, see this question (it does not implement authentication, you'll need to combine the two on your own): How to use adapter inside the application in worklight
Related
i want to store user information in database using sql server in Angular 2, How can is it possible?
Angular is a front-end framework and In order to store user information, you should probably have a back-end connected to your app (NodeJS or Java), or else, you can use Firebase.
If you have a back-end, for an example, say java, You can connect your Java Back-end with SQL Server and store passwords there.
But as I understand, what you need to implement is a small authentication system for your app. In this case, Firebase is the easiest solution. You can do this with the help of AngularFire. Follow this tutorial.
I currently developing multiple Eclipse RCP based application which manipulates same resource (database and files).
I want to provide Single Sign On feature to these applications so the user doesn't need to provide his/her credentials. I want you Kerberos as it is inbuilt in windows, so logged in window user can log in to my application too.
Any tutorial link or suggestion is appreciated.
Thanks Shashwat
After searching a lot didn't found any help regarding this question. So, used java based NTLM authentication.
I am new to GIS web development and I have been working on developing browser based application using Postgres, apache and Geoserver which is used to render all GIS data.
I want to build user authorization system on that, so that no one can access Geoserver and also only one session per used id should be there also it should include initially when user registers one time activation should be provided by me, as i can know how many users are using it.
And also if all this is done in single computer, how can i authenticate user ??
Could somebody guide me on this?
I have gone through IBM Worklight Authentication concepts. Now I have few questions.
1) Is there a practical use of Formbased authenticater ?
All the examples I have seen uses NonValidating Login module which doesn't really validates the credentials. So what if I want to use the Form based authenticator to check the credentials against the db ? Can you please point me to a real world example ?
2) If I choose custom security test for my application, I won't be get the wl_antiXSRFRealm enabled by default, what if I don't use it, is my app vulnerable to attacks ?
3) Read in one of the article "Therefore in case your security configuration is close to default security settings you might want to use webSecurityTest and mobileSecurityTest. "
It means, we are not going to ask the users to enter credentials ?
4) A practical scenario where Custom Login module & Custom Authenticator can be used ?
There is no connection between either Form-based authentication or adapter-based authentication and the non-validating login module. You could implement them by using non-validating, or by actually validating the user credentials...
Non-validating login module is used in the sample because we cannot supply you a back-end with the sample; the purpose of the sample is to show the implementation of the client-side.
In form-based, the form is returned by the server. In adapter-based and custom-based you are less restricted and can handle this in the client. Either way, you handle the authentication using a challenge handler.
Also, please read: Understanding predefined Worklight authentication realms and security tests.
If you use a custom security test, there is no such thing as "default". You determine which tests will be in it. Simply add it back.
The antiXSRFRealm has got nothing to do with user credentials and your login module.
It is mainly used for Desktop websites and not for mobile devices; if you want, add it back in your custom security test.
I am developing a mobile application using Worklight, in which when a user signs in after authentication he should not sign in again and again. Could you please tell me how to keep the user logged in?
Check out the 'Form based authentication in hybrid applications' project in the Getting Started page: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#GS_security
There is also another feature of Worklight called 'heartbeat' which keeps your session alive by sending a simple request to the server. This also happens automagically without need configuration. It can be configured see here for more information (http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.installconfig.doc%2Fadmin%2Fc_optimizing_and_tuning_of_ibm_wl_server.html&resultof%3D%2522%2568%2565%2561%2572%2574%2562%2565%2561%2574%2522%2520).
Can you give more context to your question so the community can help figure out the problem? What version of Worklight are you using?