RE: RE: Re: RDFRemoteConnection to Shiro protected Fuseki
Hi, Forget the whole report, I messed up my shiro config, it works as expected with the snippet below. Bart On 2024/02/16 13:50:57 Bart van Leeuwen wrote: > Hi Andy, > > Stand alone example I'll try to work on that. > This is an app that runs in Apache Tomee > > the snippet how I setup the authentication: > > AuthEnv.get().registerBasicAuthModifier(provider.getEndpoint(), provider > .getUser(), provider.getPassword()); > > builder = RDFConnectionFuseki.create() > .destination(provider.getEndpoint()); > conn = builder.build(); > > provider is an internal class that gives me the information I need (all > double checked to be correct) > > the shiro line I use: > > /ristore/** = authcBasic,user[admin] > > this works from the web UI without issues > > Met Vriendelijke Groet / With Kind Regards > Bart van Leeuwen > > On 2024/02/16 10:49:38 Andy Seaborne wrote: > > Hi Bart, > > > > Do you have a complete, ideally runnable, example of how you are using > > RDFConnection and also the client side auth setup. > > > > Andy > > > > On 15/02/2024 19:27, Bart van Leeuwen wrote: > > > Hi, > > > > > > I'm runn Met Vriendelijke Groet / With Kind Regards Bart van Leeuwen mastodon: @semanticfire@mastodon.social tel. +31(0)6-53182997 Netage B.V. http://netage.nl Esdoornstraat 3 3461ER Linschoten The Netherlands
RE: Re: RDFRemoteConnection to Shiro protected Fuseki
Hi Andy, Stand alone example I'll try to work on that. This is an app that runs in Apache Tomee the snippet how I setup the authentication: AuthEnv.get().registerBasicAuthModifier(provider.getEndpoint(), provider .getUser(), provider.getPassword()); builder = RDFConnectionFuseki.create() .destination(provider.getEndpoint()); conn = builder.build(); provider is an internal class that gives me the information I need (all double checked to be correct) the shiro line I use: /ristore/** = authcBasic,user[admin] this works from the web UI without issues Met Vriendelijke Groet / With Kind Regards Bart van Leeuwen On 2024/02/16 10:49:38 Andy Seaborne wrote: > Hi Bart, > > Do you have a complete, ideally runnable, example of how you are using > RDFConnection and also the client side auth setup. > > Andy > > On 15/02/2024 19:27, Bart van Leeuwen wrote: > > Hi, > > > > I'm running Fuseki 4.9.0. on linux with OpenJDK 17 > > I've protected it with the shiro configuration and that works without > > issues for the web UI. > > > > When I try to connect to the server with RDFConnectionRemoteBuilder or > > RDFConnectionFuseki > > I get: > > Caused by: java.io.IOException: WWW-Authenticate header missing for > > response code 401 > > > > I've tried all the variations described in: > > https://jena.apache.org/documentation/sparql-apis/http-auth.html > > > > but to no avail. > > > > Met Vriendelijke Groet / With Kind Regards > > Bart van Leeuwen > > >