Help

Controls

PermLinkWikiLink
Switch Workspace

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
30. Jun 2009, 16:16 America/New_York | Link

I'm trying to enable this single sign on in the application, by using jespa (implemented custom NtlmSecurityProvider and HttpSecurityFilter).

Now I have a little problem in the Seam Authenticator, where I have something like:

@In Context sessionContext;

public boolean autoLogin() {
    Object autoLogin = sessionContext.get("NtlmHttpAuth");
    ...

sessionContext doesn't contain NtlmHttpAuth and so autoLogin is null.

Any ideas? Seam version is 2.1.2, previously it was 2.0.1 and I think this worked ok (but with jcifs, not jespa).

2 Replies:
30. Jun 2009, 16:33 America/New_York | Link

What type is Context ?

Try that instead:

ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();
Principal principal = context.getUserPrincipal();

-Guillaume

30. Jun 2009, 17:15 America/New_York | Link

Thank you very much, that worked perfectly!