ODSWebIDIdPPHPEx1Using Virtuoso's WebID Verify Proxy Service with an X.509 certificate WebID: PHP Example <?php function apiURL() { $pageURL = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://'; $pageURL .= $_SERVER['SERVER_PORT'] <> '80' ? $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] : $_SERVER['SERVER_NAME']; return $pageURL . '/ods/webid_demo.php'; } $_webid = isset ($_REQUEST['webid']) ? $_REQUEST['webid'] : ''; $_error = isset ($_REQUEST['error']) ? $_REQUEST['error'] : ''; $_action = isset ($_REQUEST['go']) ? $_REQUEST['go'] : ''; if (($_webid == '') && ($_error == '')) { if ($_action <> '') { if ($_SERVER['HTTPS'] <> 'on') { $_error = 'No certificate'; } else { $_callback = apiURL(); $_url = sprintf ('https://id.myopenlink.net/ods/webid_verify.vsp?callback=%s', urlencode($_callback)); header (sprintf ('Location: %s', $_url)); return; } } } ?> <html> <head> <title>WebID Verification Demo - PHP</title> </head> <body> <h1>WebID Verification Demo</h1> <div> This will check your X.509 Certificate's WebID watermark. <br/>Also note this service supports ldap, http, mailto, acct scheme based WebIDs. </div> <br/> <br/> <div> <form method="get"> <input type="submit" name="go" value="Check"/> </form> </div> <?php if (($_webid <> '') || ($_error <> '')) { ?> <div> The return values are: <ul> <?php if ($_webid <> '') { ?> <li>WebID - <?php print ($_webid); ?></li> <li>Timestamp in ISO 8601 format - <?php print ($_REQUEST['ts']); ?></li> <?php } if ($_error <> '') { ?> <li>Error - <?php print ($_error); ?></li> <?php } ?> </ul> </div> <?php } ?> </body> </html> Safeguarding your Virtuoso-hosted SPARQL Endpoint SPARQL Endpoint Protection Methods Collection Virtuoso documentation SPARQL Service Endpoint Service Endpoint Security Managing a SPARQL Web Service Endpoint SPARQL Virtuoso Tips and Tricks Collection SPARQL Endpoint DET Configuration Guide WebID Protocol & SPARQL Endpoint ACLs Tutorial SPARQL OAuth Tutorial Securing SPARQL endpoints SPARUL over SPARQL using the http://cname:port/sparql-auth endpoint Virtuoso Authentication Server UI Manage a SPARQL-WebID based Endpoint WebID Protocol Support in OpenLink Data Spaces. Manage ODS Datadspaces Objects WebID Access Control Lists (ACLs): ODS Briefcase WebID based ACL Guide Person Entity WebID based ACL Guide Group Entity WebID based ACL Guide Public WebID based ACL Guide ODS Feed Manager WebID based ACL Guide Person Entity Specific ACL Group Entity Specific ACL Public Specific ACL for anyone with a WebID ODS Calendar WebID based ACL Guide Person Entity Specific ACL Group Entity Specific ACL Public Specific ACL for anyone with a WebID ODS Bookmark Manager WebID based ACL Guide Person Entity Specific ACL Group Entity Specific ACL Public Specific ACL for anyone with a WebID ODS Addressbook WebID based ACL Guide Person Entity Specific ACL Group Entity Specific ACL Public Specific ACL for anyone with a WebID Guide for Set up a X.509 certificate issuer and HTTPS listener and generate ODS user certificates. Setting up PubSubHub in ODS PubSubHubBub Demo Client Example Feed subscription via PubSubHub protocol Example Setting Up PubSubHub to use WebID Protocol or IP based control lists CA Keys Import using Conductor Generate an X.509 Certificate hosted WebID Guide Generate an X.509 Certificate (with a WebID watermark) to be managed by host operating system keystore Generate an X.509 Certificate (with a WebID watermark) to be managed by a browser-based keystore Using Virtuoso's WebID Verification Proxy Service with a WebID-bearing X.509 certificate Using Virtuoso's WebID Identity Provider (IdP) Proxy Service with an X.509 certificate ODS Briefcase WebID Protocol Share File Guide WebID Protocol Specification Test WebID Protocol Certificate page WebID Protocol Certificate Generation page