I actually modified my shiro.ini yesterday, to enable the basic auth
admin user (as "localhost" inside a Docker image is not the same as
localhost outside..) and this worked fine (except being asked for
username/password on every page, not just admin page)


You have to edit it in /etc/fuseki/ (or in ./run)  after starting
Fuseki 2 once - then restart after editing.

I don't know about the details of how to do alternative realms,
however. Are you sure that those classes are available within the
fuseki-server.jar or within the fuseki.war's WEB-INF/lib folder?



(Yes - the Fuseki2 docker image is coming soon - but I have to get
that admin-user sorted as otherwise you can't load any data :)  --
perhaps having a command line option to stage-load with tdb should
also be included.)

On 19 January 2015 at 01:23, Trevor Donaldson <[email protected]> wrote:
> Not sure if this is correct place but I will ask regardless. I am trying to
> use a custom realm to authenticate users to the fuseki interface. This is
> my shiro.ini file but when I hit the fuseki url nothing happens. It doesn't
> look like it is authenticating at all.
>
> [main]
> # Development
> ssl.enabled = true
>
> plainMatcher=org.apache.shiro.authc.credential.AllowAllCredentialsMatcher
> #iniRealm=org.apache.shiro.realm.text.IniRealm
> #iniRealm.credentialsMatcher = $plainMatcher
>
> certificateRealm=custom.shiro.web.CustomRealm
> certificateRealm.credentialsMatcher = $plainMatcher
>
> securityManager.realms=$certificateRealm
>
> certificateFilter=custom.shiro.web.X509AuthenticationFilter
> #localhost=org.apache.jena.fuseki.authz.LocalhostFilter
>
> Not sure what I am doing wrong. Thanks in advance



-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718

Reply via email to