Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Login by Google Account
Login by Google Account [message #1847828] Tue, 09 November 2021 11:29 Go to next message
Eclipse UserFriend
Hi.

Is there a way to use Google Account sign-in on Scout 11 (classic widgets)? Optimally using the "Sign in with Google" button.

Thank you for answer.
Re: Login by Google Account [message #1848863 is a reply to message #1847828] Tue, 21 December 2021 07:39 Go to previous message
Eclipse UserFriend
I can't give you a working example, but since Scout uses the standard Java JAAS authentication API it should be possible to implement such a mechanism.

Basic steps:


  • Include the Google JavaScript to your login page (either directly in login.html or via a custom 'LoginBox' widget implementation).
  • Send the resulting token to the UI server. One way to do this would be quite similar to the normal user/password login (form POST).
  • Create a custom implementation of IAccessController that reads and validates this token.
  • Add the access controller in your project's UiServletFilter.
  • Once any request passes the servlet filter, an appropriate JAAS subject is created and used as security context. From this point on, everything works the same as with all other authentication methods.


Regards,
Beat
Previous Topic:Multiple separate Scout applications in one tomcat installtion
Next Topic:Eclipse Scout with MySQL or Maria DB
Goto Forum:
  


Current Time: Sat Aug 30 21:56:24 EDT 2025

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

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

Back to the top