Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » LoginDialog example(User login dialog)
LoginDialog example [message #1109597] Sun, 15 September 2013 17:39 Go to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

Very new to Scout but have been using RCP for 5+ years. In my RCP app i use the splash screen to provide a login dialog. this is limited to 3.x

What is the preferred method with scout? Are there any examples? where does the authentication process fit in the startup of the application?

Any pointers appreciated.

Regards
Re: LoginDialog example [message #1109605 is a reply to message #1109597] Sun, 15 September 2013 17:51 Go to previous messageGo to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
OK found some info in the 3.9 Scout book, this and the modify login dialog thread on this forum should be sufficient.

Any fuller descriptions would be great.

Thanks anyway
Re: LoginDialog example [message #1112386 is a reply to message #1109605] Thu, 19 September 2013 16:06 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi Dominic,

Here some useful links that may help you:

Scout Security Concept
Example using LDAP Authentication
Example how to extend the standard login dialog

Some sample demo applications. E.g. the bahbah Chat application makes heavy use of security filters.

If you have any other questions, don't hesitate to ask!

Kind regards
matthias
Re: LoginDialog example [message #1135816 is a reply to message #1112386] Sun, 13 October 2013 12:27 Go to previous messageGo to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

thanks for those links.

The issue I have now is that my SWT client happily uses DataSourceSecurityFilter but I have had no luck getting my RAP client to do so. Are there any resources relating to this issue.

Thanks in advance

Regards
Re: LoginDialog example [message #1136944 is a reply to message #1135816] Mon, 14 October 2013 06:54 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Dominic Hanlan wrote on Sun, 13 October 2013 14:27
Hi,
The issue I have now is that my SWT client happily uses DataSourceSecurityFilter but I have had no luck getting my RAP client to do so. Are there any resources relating to this issue.


What DB are you using? If you are using embededd Derby (as the minicrm tutorial does), then this would explain it: It only allows one simultaneous connection to the DB, which is already occupied by the scout server, so when the RAP client tries to connect, the connection fails.

Either switching to a derby server instead of using the embedded driver should solve this problem (though I haven't tested it).
Re: LoginDialog example [message #1137199 is a reply to message #1136944] Mon, 14 October 2013 10:22 Go to previous messageGo to next message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

no I'm using Postgresql with the following RAP config.ini entry

org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#active=true
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#realm=DENTABYTE
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcDriverName=org.postgresql.Driver
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcMappingName=jdbc:postgresql://192.168.0.53:5432/dentabyte_test
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcUsername=xxxx
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#jdbcPassword=xxxx
org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter#selectUserPass=SELECT LOWER(subscriber_username) FROM subscriber WHERE LOWER(subscriber_username)=? AND subscriber_password=?

This on the SWT client works perfectly but with RAP gives the following


!ENTRY org.eclipse.scout.http.servletfilter 4 0 2013-10-14 11:11:15.924
!MESSAGE org.eclipse.scout.http.servletfilter.security.DataSourceSecurityFilter.isValidUser(DataSourceSecurityFilter.java:168) Cannot SELECT user/pass.
!STACK 0
java.lang.ClassNotFoundException: org.postgresql.Driver cannot be found by org.eclipse.scout.http.servletfilter_3.9.0.20130510-1229

Any ideas?? I tried adding the com.bsiag.scout.rt.server.jdbc.postgresql9 as a dependency to the RAP client but this gives me an OSGI unresolved bundle error when I start the client

Regards

/Dominic

Re: LoginDialog example [message #1137462 is a reply to message #1137199] Mon, 14 October 2013 14:10 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi Dominic,

Have you tried adding the postgresql driver fragment (org.postgres.postgresql9.jdbc.fragment) to your RAP product file? Or is this already present?

Kind regards
matthias
[CLOSED]Re: LoginDialog example [message #1151595 is a reply to message #1137462] Wed, 23 October 2013 13:07 Go to previous message
Dominic Hanlan is currently offline Dominic HanlanFriend
Messages: 98
Registered: July 2009
Member
Hi,

many thanks for that, worked a treat

/Dominic
Previous Topic:Swing desktop execClosing problem
Next Topic:JUnit test for the Scout Search Form
Goto Forum:
  


Current Time: Thu Apr 25 22:10:57 GMT 2024

Powered by FUDForum. Page generated in 0.04831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top