Jeanne Boyarsky wrote:When I run that, I got an error because this isn't defined.
It should be
I don't get BigNumber not defined though. Maybe your proxy blocks github? Try downloading the file locally and referencing it from the same directory.
Jeanne Boyarsky wrote:Getta,
It works with BigNumber on github. Here's a fiddle showing your example
g tsuji wrote:From all angle, the schema set is defective.
Before any consideration of customization :
[1] if you mean an xml instance look like this,
then you change this.
[2] If you mean an xml instance look like this,
then change the imported xsd.
Mark Spritzler wrote:Looks like a good message to me. Why would you care if someone puts that in the URL and makes the error message display. It isn't like it gives them some secret way into your site.
Mark
Geeta Puttappanavar wrote:
vineet kaushik wrote:Correct Mark,
Thanks for sharing your knowledge..
Thanks,
Vineet
Hi all,
I have 2 classes (Role and User) and I want to create 1 row mapper class for both classes.
Is it possible?
Thanks in advance,
Geeta
vineet kaushik wrote:Correct Mark,
Thanks for sharing your knowledge..
Thanks,
Vineet
Prasad Krishnegowda wrote:Geeta,
UserDetails is an interface provided by spring, see this http://docs.spring.io/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/core/userdetails/UserDetails.html.
What we should do is, implement this interface, and set the password, see the interface, it has methods to set username, password and role(authorities) and other options like accountExpired and so on.
The arg0 gives us the username in the above method, use this username and populate the password and role(authorities) for this user.
Yes, the password here should be the one, which user enters while logging in. You can get it from database or hardcode it, it's up to you.
P:S: This is an old post, if you still have any problem, please create a new thread, we can see that from there.
Prasad Krishnegowda wrote:
In the above, the Parameter arg0, is the username entered by the user, you can execute the query to search from the database using this username, and you can return an User object, by adding all the required details like password and roles for this user, Spring security will take it on from here..
Tim McGuire wrote:JAAS is one of the authentication providers that Spring can use. Note that JAAS works at a lower level than web-application. It has hooks (if that is the right term) into the application server and operating system. Spring Security works in the application layer. It has its own authentication API that is very good and does not need to use JAAS. Often an existing JAAS provider is used when Spring security is implemented. In most cases, a new project would not be enhanced by using JAAS.
Spring Security based on ACEGI and ACEGI vs JAAS was covered: https://coderanch.com/t/134325/Security/ACEGI-JAAS