This content has been marked as final.
Show 1 reply
-
1. Re: Seam Authentication with RESTEasy
ktorp May 16, 2013 10:44 AM (in response to vata2999)This is how we do it:
Identity identity = Identity.instance(); Credentials credentials = identity.getCredentials(); credentials.setUsername(loginName); credentials.setPassword(password); String result = identity.login(); if (!identity.isLoggedIn()) { throw new InvalidAccessException(); }
Also, we have @BypassInterceptorsin on almost every class and don't use @In.
I hole this helps.