You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Roberto Fasciolo (JIRA)" <ji...@apache.org> on 2007/11/12 18:25:50 UTC

[jira] Created: (WICKET-1154) AuthenticatedWebSession.isSignedIn() always return false.

AuthenticatedWebSession.isSignedIn() always return false.
---------------------------------------------------------

                 Key: WICKET-1154
                 URL: https://issues.apache.org/jira/browse/WICKET-1154
             Project: Wicket
          Issue Type: Bug
          Components: wicket-auth-roles
    Affects Versions: 1.3.0-beta4
            Reporter: Roberto Fasciolo


I've a web application with some pages annotated with @AuthorizeInstantiation(Roles.USER).
If I try calling one of those I get redirected to the sign in page (as it should be), after signing in I can see those pages but calling isSignedIn() on my session object (extending AuthenticatedWebSession) always returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WICKET-1154) AuthenticatedWebSession.isSignedIn() always return false.

Posted by "Roberto Fasciolo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roberto Fasciolo closed WICKET-1154.
------------------------------------

    Resolution: Invalid

You're right, it was a problem in my code.

I still don't get why isSignedIn() was returning false but I could see all the protected pages. Not a big problem tho.

Thanks.

> AuthenticatedWebSession.isSignedIn() always return false.
> ---------------------------------------------------------
>
>                 Key: WICKET-1154
>                 URL: https://issues.apache.org/jira/browse/WICKET-1154
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-auth-roles
>    Affects Versions: 1.3.0-beta4
>            Reporter: Roberto Fasciolo
>
> I've a web application with some pages annotated with @AuthorizeInstantiation(Roles.USER).
> If I try calling one of those I get redirected to the sign in page (as it should be), after signing in I can see those pages but calling isSignedIn() on my session object (extending AuthenticatedWebSession) always returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1154) AuthenticatedWebSession.isSignedIn() always return false.

Posted by "Alastair Maw (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541873 ] 

Alastair Maw commented on WICKET-1154:
--------------------------------------

I find this extremely hard to believe. The signedIn flag is set when the user is authenticated, using your authenticate(username, password) method implementation.

Are you sure you're not using a stateless page for your sign in page, and not calling Session.bind() or similar?

> AuthenticatedWebSession.isSignedIn() always return false.
> ---------------------------------------------------------
>
>                 Key: WICKET-1154
>                 URL: https://issues.apache.org/jira/browse/WICKET-1154
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-auth-roles
>    Affects Versions: 1.3.0-beta4
>            Reporter: Roberto Fasciolo
>
> I've a web application with some pages annotated with @AuthorizeInstantiation(Roles.USER).
> If I try calling one of those I get redirected to the sign in page (as it should be), after signing in I can see those pages but calling isSignedIn() on my session object (extending AuthenticatedWebSession) always returns false.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.