Re: Securing Tynamo tapestry-resteasy with Shiro

2017-05-06 Thread Pavel Chernyak
-resteasy. Good luck. On 5 May 2017 at 23:49, Richard Frovarp <rfrov...@apache.org> wrote: > I'm wondering if there is a straightforward way to secure > tapestry-resteasy with Shiro. We're already using tapestry-security. I have > a student doing some work to do this, and it doesn't seem l

Securing Tynamo tapestry-resteasy with Shiro

2017-05-05 Thread Richard Frovarp
I'm wondering if there is a straightforward way to secure tapestry-resteasy with Shiro. We're already using tapestry-security. I have a student doing some work to do this, and it doesn't seem like the two work together. We can protect the URL path from the AppModule using the Shiro code like

Re: Tapestry-security/shiro check for 'any' permission

2017-04-20 Thread Barry Books
It's been a while but I think you are correct about how Shiro works. I would use a role to solve this. You can make a role like "maintainer" and assign that role to anyone that can maintain objects. Then you can protect any pages after the url /maintain On Wednesday, April 19, 2

Tapestry-security/shiro check for 'any' permission

2017-04-19 Thread Robin Garner
appear on the list of objects, and when they try to POST a change, shiro ensure they have rights to the object. All works, no problems. This new feature is functionality that not all users have access to, so on the front page I want to add a link that only appears for users who have access

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-11 Thread Dusko Jovanovski
(possibly configurable with a symbol), people would be able to enable it if they like. Ultimately, the call is yours, I just wanted to point out this possible problem. On Mon, Mar 10, 2014 at 9:41 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Perhaps there's no reason to wait for a fix in Shiro

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-10 Thread Kalle Korhonen
Perhaps there's no reason to wait for a fix in Shiro. I could just implement this as a new default CookieRememberMeManager in tapestry-security. Dusko, you mind if I use your SimplePrincipalSerializer? Kalle On Thu, Mar 6, 2014 at 3:21 AM, Dusko Jovanovski dusk...@gmail.com wrote: Thanks

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Lidija Dolinar
at 5:54 PM, Kalle Korhonen kalle.o.korho...@gmail.comwrote: Ah yes, the size of the default remember me cookie can grow outrageously big because it uses Java serialization. That's long running issue against Shiro web (https://issues.apache.org/jira/browse/SHIRO-226). It's simply to override

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Lidija Dolinar
:54 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Ah yes, the size of the default remember me cookie can grow outrageously big because it uses Java serialization. That's long running issue against Shiro web (https://issues.apache.org/jira/browse/SHIRO-226). It's simply to override

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Dusko Jovanovski
: Ah yes, the size of the default remember me cookie can grow outrageously big because it uses Java serialization. That's long running issue against Shiro web (https://issues.apache.org/jira/browse/SHIRO-226). It's simply to override with your own implementation - you could use the one

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Lidija Dolinar
(AbstractRememberMeManager.java:514) ~[shiro-core-1.2.0.jar:1.2.0] at org.apache.shiro.mgt.AbstractRememberMeManager.convertBytesToPrincipals(AbstractRememberMeManager.java:431) ~[shiro-core-1.2.0.jar:1.2.0] at org.apache.shiro.mgt.AbstractRememberMeManager.getRememberedPrincipals(AbstractRememberMeManager.java:396

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Dusko Jovanovski
] at org.apache.shiro.mgt.AbstractRememberMeManager.deserialize(AbstractRememberMeManager.java:514) ~[shiro-core-1.2.0.jar:1.2.0] at org.apache.shiro.mgt.AbstractRememberMeManager.convertBytesToPrincipals(AbstractRememberMeManager.java:431) ~[shiro-core-1.2.0.jar:1.2.0

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-06 Thread Lidija Dolinar
Cookie size is 2K. Works like a charm, thank you :). Regards, Lidija On Thu, Mar 6, 2014 at 12:21 PM, Dusko Jovanovski dusk...@gmail.com wrote: Thanks for pointing that out, I wasn't finishing the GZIP stream properly, already fixed in the updated gist.

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-05 Thread Kalle Korhonen
Ah yes, the size of the default remember me cookie can grow outrageously big because it uses Java serialization. That's long running issue against Shiro web (https://issues.apache.org/jira/browse/SHIRO-226). It's simply to override with your own implementation - you could use the one attached

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-04 Thread Lidija Dolinar
I pasted shiro's debug logs below. As far as I can see two rememberMe cookies are created: one with value deleteMe that gets deleted immediately since Max-Age=0 and another rememberMe cookie that has expiration date 1 year from now. So why don't I see this cookie in a browser? There's a debug

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-04 Thread Lidija Dolinar
Sorry for talking to myself :-). We managed to resolve the issue - the cookie was bigger than 4K. I had to debug shiro-web since there was no warning whatsoever and browser obviously just ignored the cookie. This issue is nicely explained here: http://shiro-user.582556.n2.nabble.com/Remember-me

Re: shiro UsernamePasswordToken RememberMe problems

2014-03-03 Thread Lidija Dolinar
Lenny and Kalle, thank you for your responses. On Tue, Feb 25, 2014 at 10:26 PM, Kalle Korhonen kalle.o.korho...@gmail.com wrote: Shiro makes a strong separation between remembered and authenticated use cases. It depends on your security settings whether you want to allow remembered only

Re: shiro UsernamePasswordToken RememberMe problems

2014-02-25 Thread Lenny Primak
); } ... } This is taken from shiro documentation ( https://shiro.apache.org/authentication.html): //Example using most common scenario of username/password pair:UsernamePasswordToken token = new UsernamePasswordToken(username, password); //Remember Me built-in:token.setRememberMe(true

Re: shiro UsernamePasswordToken RememberMe problems

2014-02-25 Thread Kalle Korhonen
. After I close the browser and reopen it again I'm not logged in. Am I missing something here? Shiro makes a strong separation between remembered and authenticated use cases. It depends on your security settings whether you want to allow remembered only users. The built-in Shiro rememberMe

shiro UsernamePasswordToken RememberMe problems

2014-02-24 Thread Lidija Dolinar
); } UsernamePasswordToken token = new UsernamePasswordToken(jsecLogin, jsecPassword); token.setRememberMe(true); try { currentUser.login(token); } ... } This is taken from shiro documentation ( https://shiro.apache.org/authentication.html): //Example using most common scenario

Shiro configuration for shiroSavedRequest cookie domain

2014-01-28 Thread Lidija Dolinar
=domainName But as I understand, I cannot configure shiro in Tapestry through shiro.ini file. How else can I configure this? Any help would be highly appreciated. Regards, Lidija

Re: Shiro configuration for shiroSavedRequest cookie domain

2014-01-28 Thread Lidija Dolinar
with the following setting in shiro.ini: [main] securityManager.sessionManager.sessionIdCookie.domain=domainName But as I understand, I cannot configure shiro in Tapestry through shiro.ini file. How else can I configure this? Any help would be highly appreciated. Regards, Lidija

Re: onActivate not called / Ajax / Shiro

2013-10-30 Thread Andreas Fink
Hi Jens On Oct 28, 2013, at 19:44 , Lenny Primak wrote: ... The statement above would make me think that Tapestry-Security does work for AJAX requests too, as onActivate() is invoked for every request for the page, render or action. The way Tapestry-Securitiy filter is set up is that it

Re: onActivate not called / Ajax / Shiro

2013-10-30 Thread Lenny Primak
FlowLogix library also has a couple of solutions to deal with this: @AJAX annotation http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation that will redirect to the login screen if session has expired (among other things) and the SessionMonitor component

Re: onActivate not called / Ajax / Shiro

2013-10-28 Thread mailingl...@j-b-s.de
page gets called) As the only difference is zone/ajax related, I guess shiro does not handle XHR requests correctly when rendering/redirecting, but this just an assumption. I have to dig deeper in the shiro source Jens Von meinem iPhone gesendet Am 27.10.2013 um 14:44 schrieb Lenny Primak lpri

Re: onActivate not called / Ajax / Shiro

2013-10-28 Thread Lenny Primak
in the browser, but luckily in this case everything works as expected (redirect to unauthorized page and onActivate from the unauthorized page gets called) As the only difference is zone/ajax related, I guess shiro does not handle XHR requests correctly when rendering/redirecting

Re: onActivate not called / Ajax / Shiro

2013-10-28 Thread Thiago H de Paula Figueiredo
requests for a page that's not authorized? Also, in Tapestry 5.4, this should be handled properly by way T5.4 handles JavaScript. I'm not following you. onActivate isn't getting called because Tapestry-Security / Shiro intercepts it (and denies it's permission) before onActivate ever gets called

Re: onActivate not called / Ajax / Shiro

2013-10-28 Thread Lenny Primak
T5.4 handles JavaScript. I'm not following you. Tapestry 5.4 handles JavaScript errors better, so this issue doesn't exist in T5.4 onActivate isn't getting called because Tapestry-Security / Shiro intercepts it (and denies it's permission) before onActivate ever gets called

onActivate not called / Ajax / Shiro

2013-10-27 Thread Jens Breitenstein
) on the event-callback method to limit access. In case an user does not have the required permissions Shiro correctly identfies it and throws an OperationException(Subject does not have permission), perfect too. Unfortunately there is no redirect to the Unauthorized page but instead the page is rendered

Re: onActivate not called / Ajax / Shiro

2013-10-27 Thread Lenny Primak
isn't getting called because Tapestry-Security / Shiro intercepts it (and denies it's permission) before onActivate ever gets called. On Oct 27, 2013, at 8:55 AM, Jens Breitenstein wrote: Hi all! I have a strange problem and maybe one of you can give me a hint... Basically I have a table

AW: RE: Apache Shiro

2013-08-12 Thread Willy Browne
I am glad i made you laugh. I know how this works with tapestry and also would like to do/know how to do this with shiro, without using the userExists property if there is a way. Gesendet über Yahoo! Mail für Android

Apache Shiro

2013-08-11 Thread Will N.
Hi, i have some issues using shiro in my tapestry application. So far login and logout work almost perfect. I have a custom logout link which is an image but one logout text is still i guess automatically generated, so i have my image and the logout text(link). how can i avoid that? The second

RE: Apache Shiro

2013-08-11 Thread Nomen Nominus
Haha, man, you made me so laugh!! :))I am not sure whether or not are you trolling, but you made my day bumping with this Q. on my Q. :D Hahahaha :)) I am not acquinted well enough with tapestry shiro, but as for the tapestry itself, there is a great shortcut including @Property

shiro on tapestry

2013-01-06 Thread nhhockeyplayer nashua
Folks, i am operating shiro on tapestry. but my doGetAuthenticationInfo(...) is called twice for every currentSubject.login(...) call I cannot even implement a hit counter without the count being doubled at increment within the realm. is there a workaorund for this? or do i have to live

RE: shiro on tapestry

2013-01-06 Thread nhhockeyplayer nashua
Well its strange I see in debugger two invocations of the method and two increments of my counter. but only one lands in the database. very strange even after logout and shutdown... hitcount == 1

Re: shiro authentication

2011-12-29 Thread Kalle Korhonen
CredentialsMatcher configured. Perhaps you need to [set a HashedCredentialsMatcher to your realm][4]. [1]: http://shiro.apache.org/static/current/apidocs/org/apache/shiro/realm/AuthenticatingRealm.html [2]: http://shiro.apache.org/static/current/apidocs/org/apache/shiro/subject/Subject.html [3

shiro authentication

2011-12-28 Thread csckid
= findByUsername(username); return new SimpleAuthenticationInfo(username, user.getEncodedPassword(), new SimpleByteSource(user.getPasswordSalt()), getName()); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/shiro-authentication-tp5106945p5106945.html Sent

Re: shiro

2011-12-20 Thread csckid
()); } and @RequiresRoles(value = {doctor, employee}) None of them worked. :( I wanted doctor and employee to access the page. But, with these code none of them were working. -- View this message in context: http://tapestry.1045711.n5.nabble.com/shiro-tp5082018p5088642.html Sent from the Tapestry - User

Re: shiro

2011-12-20 Thread Kalle Korhonen
On Tue, Dec 20, 2011 at 3:45 AM, csckid testnowsh...@gmail.com wrote:  public static void contributeSecurityConfiguration(ConfigurationSecurityFilterChain configuration,                        SecurityFilterChainFactory factory) {

Re: shiro

2011-12-19 Thread Alejandro Scandroli
this message in context: http://tapestry.1045711.n5.nabble.com/shiro-tp5082018p5082018.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

shiro

2011-12-16 Thread csckid
(), doctor).build()); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/shiro-tp5082018p5082018.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

tapestry-security shiro

2011-12-08 Thread csckid
)); configuration.add(signup-anon, new FilterChainDefinition(/signup, anon)); configuration.add(signin-anon, new FilterChainDefinition(/signin, anon)); } * shiro-users.properties* //I really don't know what to write here user.localuser = local, admin role.admin = user:view -- View

Re: tapestry-security shiro

2011-12-08 Thread Kalle Korhonen
simple tutorial just for this? shiro-users.properties is for a properties realm (i.e. that's your simple user database). You want a custom realm for your database model, something like: http://svn.codehaus.org/tynamo/trunk/tynamo-federatedaccounts/tynamo-federatedaccounts-core/src/test/java/org

Re: T5.1 and Tynamo Security: override a Shiro Filter

2011-03-21 Thread anton.litvinenko
Damn, I only now find out that I have replies to my question. Kalle, I have an app that sometimes (depending on some conf init parameter) should use the typical login inapp sequence (tapestry login page and out of the box tapestry-shiro integration) but at other times the authentication should

Re: Integrating tynamo tapestry-security (apache shiro)

2011-03-07 Thread Magnus Kvalheim
a (Tynamo) issue for it and I get to it. 2. shiro.ini or module configuration - I'm confused The tapestry-security documentation say you can configure shiro in either shiro.ini or in module. I might be wrong here, but it seems that from module you can only configure redirect urls

Integrating tynamo tapestry-security (apache shiro)

2011-03-04 Thread Magnus Kvalheim
been a pleasure. Using: Tapestry 5.2.4 Tapestry-Security: 0.3.1 Initially I had a custom authentication dispatcher for restricting access, and a cookie rememberme (also a dispatcher). With tapestry-security and shiro I get a feature rich authentication and authorization framework based on roles

Re: Integrating tynamo tapestry-security (apache shiro)

2011-03-04 Thread Kalle Korhonen
not been able to solve this yet. Please open a (Tynamo) issue for it and I get to it. 2. shiro.ini or module configuration - I'm confused The tapestry-security documentation say you can configure shiro in either shiro.ini or in module. I might be wrong here, but it seems that from module you can

Re: questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo

2011-01-07 Thread Ronald Luke
Thanks, Taha, that really helped, I got it working. Ron From: Taha Hafeez tawus.tapes...@gmail.com To: Tapestry users users@tapestry.apache.org Sent: Wed, January 5, 2011 4:21:49 PM Subject: Re: questions regarding tapestry, shiro, tapestry-security

questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo

2011-01-05 Thread Ronald Luke
Hello, guys, I am having a very hard time trying to figure out how to use shiro in tapestry. Now I'm looking at the wonderful T5 hotel-booking-demo(using tynamo's tapestry-security) code. If a visitor is not logged in , when she goes to the search page, she will be redirected to the signin

Re: questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo

2011-01-05 Thread Taha Hafeez
Taha On Wed, Jan 5, 2011 at 1:46 PM, Ronald Luke ronald.l...@ymail.com wrote: Hello, guys, I am having a very hard time trying to figure out how to use shiro in tapestry. Now I'm looking at the wonderful T5 hotel-booking-demo(using tynamo's tapestry-security) code. If a visitor is not logged

Re: questions regarding tapestry, shiro, tapestry-security and the hotel-booking-demo

2011-01-05 Thread Thiago H. de Paula Figueiredo
On Wed, 05 Jan 2011 06:16:43 -0200, Ronald Luke ronald.l...@ymail.com wrote: Hello, guys, Hi! Now I'm looking at the wonderful T5 hotel-booking-demo(using tynamo's tapestry-security) code. If a visitor is not logged in , when she goes to the search page, she will be redirected to the

Re: T5.1 and Tynamo Security: override a Shiro Filter

2010-11-25 Thread Kalle Korhonen
...@gmail.com wrote: Hello! I need to override Shiro authc filter. I can do that via shiro.ini file: [main] authc=com.programeter.web.security.RemoteUserAuhtenticationFilter But I am wondering if there's way to achieve the same via XxxModule and configure Shiro via Tynamo Security. Tynamo has

Re: T5.1 and Tynamo Security: override a Shiro Filter

2010-11-25 Thread Kalle Korhonen
Follow http://jira.codehaus.org/browse/TYNAMO-67. In the one application I needed this, I'm still using tapestry-security 0.1.0 which allowed these type of contributions and was a separate and my original effort at integrating jsecurity/shiro. There were a few other interesting features and I'll

T5.1 and Tynamo Security: override a Shiro Filter

2010-11-24 Thread anton.litvinenko
Hello! I need to override Shiro authc filter. I can do that via shiro.ini file: [main] authc=com.programeter.web.security.RemoteUserAuhtenticationFilter But I am wondering if there's way to achieve the same via XxxModule and configure Shiro via Tynamo Security. Tynamo has

Re: tynamo tapestry-security / shiro help

2010-11-22 Thread Alejandro Scandroli
Hi Paul The AuthorizingRealm constructor can take a CacheManager as a parameter. In our case we use the EhCacheManager. That's all you need! Cheers. Alejandro On Fri, Nov 19, 2010 at 12:58 AM, Paul Stanton p...@mapshed.com.au wrote: Kalle, I'm think I'm making progress however I haven't

Re: tynamo tapestry-security / shiro help

2010-11-22 Thread Paul Stanton
Alejandro, Would you mind posting your Realm implementation? I tried just providing a CacheManager to the constructor for AuthorizingRealm but there must be something else missing as i still have 2 problems: 1. The SimpleAccount is not being cached after the credentials have been checked

tynamo tapestry-security / shiro help

2010-11-18 Thread Paul Stanton
Kalle, I'm think I'm making progress however I haven't found a good guide to confirm I'm on the right track. I have a persistent User entity (db+hibernate). The user has multiple roles. I only really want to use the RequiresRoles annotation on pages (and some methods) at this point. So

Re: tapestry security with 1.1.0 of shiro -- unable to get sha512 login working.

2010-11-14 Thread cablepuff
UsernamePasswordToken(username, password)); } }); Assert.assertEquals(subject.getPrincipal(), username); but i have no idea , how to test salt. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-security-with-1-1-0-of-shiro-unable-to-get-sha512

tapestry security with 1.1.0 of shiro -- unable to get sha512 login working.

2010-11-13 Thread cablepuff
So this is in my pom.xml I have 0.2.0 version of tynamo security excluding apache shiro 1.0.0.incubating and instead using 1.1.0 of apache shiro. my save user looks like this.. // begin save user RandomNumberGenerator rng = new SecureRandomNumberGenerator

Re: tapestry security with 1.1.0 of shiro -- unable to get sha512 login working.

2010-11-13 Thread Kalle Korhonen
HashedCredentialsMatcher { 3) Are you using T5.1.0.5? If so, use the brand new, yet unannounced tapestry-security 0.2.1 (that depends on Shiro 1.1.0). Agree this is important enough to have a decent example for it. I'm waiting to have T5.2.3 release available before making the corresponding tapestry-security

tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
Hi all, I am playing with hotel booking application and trying to use some examples from it in my project. Now I have a problem in login page - when I try to login, I got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I upgrade

Re: tynamo-security (shiro) exception

2010-10-25 Thread Mark Shead
try to login, I got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I upgrade to fixed version of shiro/tynamo-security? Thanks in advance. Anton

Re: tynamo-security (shiro) exception

2010-10-25 Thread Christophe Cordenier
got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I upgrade to fixed version of shiro/tynamo-security? Thanks in advance. Anton -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki

Re: tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
/SHIRO-183 Is it fixed now? How can I upgrade to fixed version of shiro/tynamo-security? Thanks in advance. Anton -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com

Re: tynamo-security (shiro) exception

2010-10-25 Thread Katia Aresti
in login page - when I try to login, I got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I upgrade to fixed version of shiro/tynamo-security? Thanks in advance. Anton -- Regards, Christophe Cordenier

Re: tynamo-security (shiro) exception

2010-10-25 Thread Anton Mezerny
, I am playing with hotel booking application and trying to use some examples from it in my project. Now I have a problem in login page - when I try to login, I got shiro's cipher exception, like here: https://issues.apache.org/jira/browse/SHIRO-183 Is it fixed now? How can I