Muntjac security

37 views
Skip to first unread message

Андрей Данилов

unread,
Sep 27, 2012, 1:10:33 AM9/27/12
to mun...@googlegroups.com

Hi! Sorry my Google translate
Thank you for Muntjac.
I have a question about its security.
If I do the authorization in the following way:

class Calc(Application):

def init(self):
   self.l = VerticalLayout()
   self.setMainWindow(Window('Calculator Application', self.l))

   login = LoginForm()
   login.setWidth('100%')
   login.setHeight('300px')

   login.addListener(NewLoginListener(self), ILoginListener)

   self.l.addComponent(login)


class NewLoginListener(ILoginListener):
def __init__(self, c):
    self._c = c

def onLogin(self, event):
   this = self._c
   if (event.getLoginParameter('username'), event.getLoginParameter('password')) in users:
      this.init_app()


How secure access to the inner parts of my application?

Richard Lincoln

unread,
Sep 27, 2012, 7:58:56 AM9/27/12
to mun...@googlegroups.com
I think you have the right idea. The process for Vaadin is described here:

https://vaadin.com/book/-/page/rapid.auth.html

Essentially, only call showMainUI() if the user is logged in or on
successful login.

Regards,
Richard
Reply all
Reply to author
Forward
0 new messages