On 7/6/17 1:31 PM, Carlo Capelli wrote: > Hi Kingsley > > Thanks for your answer, sorry for the late reply... > > From the (verbose and very sparse!) information I've collected so far, > seems I have to send my credentials to perform basic authentication > with the server. > > So, inspecting - with help from the browser developer tools - the > default interface protocol (the HTTP form with the fields > httpd_password,httpd_username, presented upfront the URL request, > let's say https://www.example.com/sparql), > I've managed to issue a correct call - using php curl, where I can > trust better the transmission. > Alas, the return payload value is encrypted... still more problems, > and low level details to 'guess'... > > This seems way too complicated for such a simple use case. > I wonder what could be the reason to keep the details of the client so > difficult to find. > Isn't authenticated access via HTTPS almost a necessity these days?
Hi Carlo, To cut a long story short, if you want to use TLS to authenticate you need to use WebID+TLS+Delegation protocol. You can also use Digest Authentication via /sparql-auth endpoint. The only requirement is CORs enabling the SPARQL endpoint. [1] https://enable-cors.org/server_virtuoso.html [2] http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksCORsEnableSPARQLURLs [3] http://vos.openlinksw.com/owiki/wiki/VOS/VirtTipsAndTricksGuideCORSSetup Kingsley > > 2017-07-03 15:41 GMT+02:00 Kingsley Idehen <kide...@openlinksw.com > <mailto:kide...@openlinksw.com>>: > > On 7/3/17 5:16 AM, Carlo Capelli wrote: >> Hi All >> >> I had no luck searching for a javascript client with capability >> to connect to a secured endpoint, >> and nobody could help me on stackoverflow ( >> https://stackoverflow.com/q/44871467/874024 >> <https://stackoverflow.com/q/44871467/874024> ). >> >> Is there some open source code sample I could start from ? >> If I will solve this, my plan is to contribute to this client ( >> https://www.npmjs.com/package/virtuoso-sparql-client >> <https://www.npmjs.com/package/virtuoso-sparql-client> ) >> >> Best regards, Carlo > > CORs-enable your endpoint. > > > Now the endpoint is CORS enabled. But it didn't solved my problem. > > > DBpedia's endpoint (a Virtuoso instance) is CORs enabled, thus you > should verify you work against that. > > > Not sure I follow, I'm using a module (virtuoso-sparql-client > <https://www.npmjs.com/package/virtuoso-sparql-client>) that for sure > allows to fetch public data from dbpedia... > > Best regards, Carlo > > > Kingsley >> >> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> >> >> _______________________________________________ >> Virtuoso-users mailing list >> Virtuoso-users@lists.sourceforge.net >> <mailto:Virtuoso-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users >> <https://lists.sourceforge.net/lists/listinfo/virtuoso-users> > > > -- > Regards, > > Kingsley Idehen > Founder & CEO > OpenLink Software (Home Page: http://www.openlinksw.com) > > Weblogs (Blogs): > Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ > <http://www.openlinksw.com/blog/%7Ekidehen/> > Blogspot Blog: http://kidehen.blogspot.com > Medium Blog: https://medium.com/@kidehen > > Profile Pages: > Pinterest: https://www.pinterest.com/kidehen/ > <https://www.pinterest.com/kidehen/> > Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen > <https://www.quora.com/profile/Kingsley-Uyi-Idehen> > Twitter: https://twitter.com/kidehen > Google+: https://plus.google.com/+KingsleyIdehen/about > <https://plus.google.com/+KingsleyIdehen/about> > LinkedIn: http://www.linkedin.com/in/kidehen > <http://www.linkedin.com/in/kidehen> > > Web Identities (WebID): > Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i > <http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i> > : > http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this > > <http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this> > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > <mailto:Virtuoso-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/virtuoso-users > <https://lists.sourceforge.net/lists/listinfo/virtuoso-users> > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users -- Regards, Kingsley Idehen Founder & CEO OpenLink Software (Home Page: http://www.openlinksw.com) Weblogs (Blogs): Legacy Blog: http://www.openlinksw.com/blog/~kidehen/ Blogspot Blog: http://kidehen.blogspot.com Medium Blog: https://medium.com/@kidehen Profile Pages: Pinterest: https://www.pinterest.com/kidehen/ Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen Twitter: https://twitter.com/kidehen Google+: https://plus.google.com/+KingsleyIdehen/about LinkedIn: http://www.linkedin.com/in/kidehen Web Identities (WebID): Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i : http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users