|
Re: Login by Google Account [message #1848863 is a reply to message #1847828] |
Tue, 21 December 2021 12:39 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03452 seconds