That’s normal behavior. After authentication, by default Shiro will re-direct to the last known URL (which is http://myHost/MyApp ) in your case. There is something unrelated going on in your app. The “;jsessionid=xxx” comes from Servlet container and not Shiro, and will not change any behavior.
> On Jul 11, 2016, at 3:24 PM, [email protected] wrote: > > I am needing to implement Basic Digest Auth with Shiro. I have a JS > webapplication talking to a REST interface. > > I was able to find an implementation of Basic Digest on github > https://github.com/afs/http-digest-auth > > I have this code in place in my app, but I am having 1 final issue I cannot > seem to get around. When trying to go to the root of my app, i.e. > http://myHost/MyApp After I authenticate, I am not redirected to the > index.html file. Instead my Browser shows a URL like so: > http://myHost/MyApp/;jsessionid=F65014F16076B0320B1425927FC8210B and an > empty page is displayed... > > If I cut off the jsessionid piece, and add /index.html to the URL, then I > get to the file correctly. > > There is no tech support for the BasicDigest code, so I am posting here > hoping someone might be able to point me in the right direction. For what > its worth, BASIC auth "authcBasic" works perfect. > > My Shiro ini looks like this: > ################################################## > #----------- > # Main > # ---------- > [main] > myRealm = auth.MyCustomRealm > cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager > securityManager.cacheManager = $cacheManager > securityManager.realms = $myRealm > authc.successUrl = /index.html > > ## Filter For HTTP digest authentication > authcDigest= org.seaborne.auth.shiro.DigestHttpIniPassword > > # > ----------------------------------------------------------------------------- > # URLS - followed by Filter Chains. > # > ----------------------------------------------------------------------------- > [urls] > /** = authcDigest > > ################################################ > > Looking for any hints or ideas. > > Thanks. > > > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Basic-Digest-Auth-with-Shiro-tp7581116.html > Sent from the Shiro User mailing list archive at Nabble.com. >
