openlink / virtuoso-opensource

Virtuoso is a high-performance and scalable Multi-Model RDBMS, Data Integration Middleware, Linked Data Deployment, and HTTP Application Server Platform
https://vos.openlinksw.com
Other
863 stars 210 forks source link

Virtuoso8 + OAuth #818

Open turnguard opened 5 years ago

turnguard commented 5 years ago

Hi there, i'm evaluating virtuoso8 + oauth, but am running into issues. i'm using a fresh download (Version: 08.02.3309). when i check sparql-oauth under "Virtual Domains & Directories" i see that the "Physical path" of this virtual directory points to "/DAV/VAD/wa/oauth/" and the "Default Page" "sparql.vsp". the directory /DAV/VAD/wa/oauth/ doesn't exist. any pointer greatly appreciated..

kr turnguard

also note: an OAuth authentication option is also missing for sparql-auth (i get this small window where i can choose between webid, user/pass and openid also note: /oauth path is pointing to another page than with virtuoso7 . i can configure several things there, but documentation doesn't apply here..

TallTed commented 5 years ago

My first thought is that you may not have installed (the correct versions of) the necessary VADs, and/or have found some outdated documentation.

Please confirm that you've downloaded the latest builds of the Conductor and ODS Framework, via either the download wizard or the manual repository.

If those don't resolve the matter, please provide a link to the documentation page you have been trying to follow.

(Note -- it's generally better to raise issues with Enterprise Edition through the OpenLink Community site or the Virtuoso Users mailing list, or (if confidentiality is needed and/or if covered by a Maintenance Contract) a Support Case.)

turnguard commented 5 years ago

those VAD package versions are exactly the ones i've got installed with my fresh download from today, so there are not improvements, /oauth directory mentioned above is still not there..

TallTed commented 5 years ago

Again -- which documentation page are you trying to follow? I've found that several pages need updating, and I think this should start with the one you have been working from, because it's apparently found first...

Others should be weighing in, but one thing I believe may help is that instead of /oauth, you should be loading /oauth/ (note the trailing slash), and that there should be a rewrite/redirect to catch that (which is currently lacking).

turnguard commented 5 years ago

slash or no slash doesn't make a big diff.. i was just able to put my sparql endpoint behind google oauth2.0 authentication and it works now.. the first thing i tried (when i created the pull req. for the dev/7 branch) was along those lines: http://docs.openlinksw.com/virtuoso/rdfsparqlprotocolendpoint/#sparqloauthendpoint

now i hacked together info from 10 pages..

turnguard commented 5 years ago

one more note: i think the VADs that are shipped with 8.2. define the /oauth to look for oauth_apps.vsp (Default Page) in /DAV/VAD/val/www/oauth/ (Physical Path).. i changed that to index.vsp