Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Login by Google Account
Login by Google Account [message #1847828] Tue, 09 November 2021 16:29 Go to next message
Miloslav Frajdl is currently offline Miloslav FrajdlFriend
Messages: 41
Registered: June 2018
Member
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 12:39 Go to previous message
Beat Schwarzentrub is currently offline Beat SchwarzentrubFriend
Messages: 201
Registered: November 2010
Senior Member
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 Feb 24 13:26:58 GMT 2024

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

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

Back to the top