Hi Nicolas,

I just tried to login via the sample webapp using lonestarr/vespa, and
it worked.  I'm using the trunk build as of today (2012-01-03), but
the INI realm logic hasn't changed - it should work fine.  If you turn
on logging or set breakpoints, can you determine where the login
failure is occurring?

Regards,

-- 
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: @lhazlewood | http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com

On Sun, Jan 1, 2012 at 3:06 PM, Nicolas Diogo <[email protected]> wrote:
>
> Hi,
>
> i have create a simple JSF2 app and added Shiro as per documentation.  I am
> using a SNAPSHOT version 1.2 (2011-12-29)
> The installation is working fine except that it does not accept username and
> password - using shiro.ini storage
> i have tried;
> user: lonestarr
> pass: vespa
>
> but it does not get recognised at all
> is there something that i should change on the configuration below?
>
> thanks,
>
> Nicolas
>
>
> ===========================================================================
> ===========================================================================
>
>
> [main]
>
> # defining the FormAuthenticationFilter ('authc') - it is instantiated and
> available already:
> authc.loginUrl = /authetication_action/login.xhtml
> authc.usernameParam = j_username
> authc.passwordParam = j_password
> authc.rememberMeParam = j_rememberMe
>
>
> #
> =============================================================================
> # Tutorial INI configuration
> #
> # Usernames/passwords are based on the classic Mel Brooks' film "Spaceballs"
> :)
> #
> =============================================================================
>
> #
> -----------------------------------------------------------------------------
> # Users and their (optional) assigned roles
> # username = password, role1, role2, ..., roleN
> #
> -----------------------------------------------------------------------------
> [users]
> root = secret, admin
> guest = guest, guest
> presidentskroob = 12345, president
> darkhelmet = ludicrousspeed, darklord, schwartz
> lonestarr = vespa, goodguy, schwartz
>
> #
> -----------------------------------------------------------------------------
> # Roles with assigned permissions
> # roleName = perm1, perm2, ..., permN
> #
> -----------------------------------------------------------------------------
> [roles]
> users = schwartz, user:profile, user:pages
> admin = *
> schwartz = lightsaber:*
> goodguy = winnebago:drive:eagle5
>
> [urls]
>
> /authetication_action/** = anon
> /content_available/** = anon
> /error_page/** = anon
>
> # form to authenticate users
> /authetication_action/login.xhtml = authc
>
> /content_profile_user/** = authc, roles[users]
> /content_restricted/** = authc, roles[users]
> /content_secureAdmin/** = authc, roles[admin]
>
>
> ===========================================================================
> ===========================================================================
>
>
> --
> sent with Debian Linux (http://www.debian.org)
> free yourself into a safer internet
> this message is only intended to its recipient

Reply via email to