HTTP request.getRemoteUser() doesn't work

Hello everyone,

Since couple of days, I’ve been trying to handle with user authentication using spnego and kerberos in my application written in java using Vaadin.
I would like to ask for difference between vaadinRequest.getRemoteUser() and jsp request.getRemoteUser()?

I ran simple web application:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>Hello SPNEGO Example</title>
</head>
<body>
Hello1 <%= request.getRemoteUser() %><br>
Hello2 <%= request.getRemoteHost() %>
</body>
</html>

and as aresult I can see in my web browser happy "Hello1 a.kowieski
Hello2 106.*.79.25 "

but since using:

@Override
	protected void init(VaadinRequest vaadinRequest) {
		System.out.println(request.getRemoteUser());
	}

	@WebServlet(urlPatterns = "/*", name = "MyUIServlet", asyncSupported = true)
	@VaadinServletConfiguration(ui = MyUI.class, productionMode = false)
	public static class MyUIServlet extends VaadinServlet {

		/**
		 * 
		 */ 
		private static final long serialVersionUID = 1L;
	}
	

I got only “null” as a result :frowning:

What should I do, to rather understand the logical aspects of using authentication in Vaadin?

Of course I am using same Tomcat as an app container in both cases.

Adam