Skip to content

Commit

Permalink
Expose Solid client id, Closes #123
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 9, 2022
1 parent 73aa5cb commit 41986a7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions solid-client-id.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"@context": ["https://www.w3.org/ns/solid/oidc-context.jsonld"],
"client_id": "https://query.linkeddatafragments.org/solid-client-id.json",
"client_name": "Comunica Web Client",
"redirect_uris": ["https://query.linkeddatafragments.org/"],
"post_logout_redirect_uris": ["https://query.linkeddatafragments.org/"],
"client_uri": "https://query.linkeddatafragments.org/",
"logo_uri" : "https://query.linkeddatafragments.org/images/logo.svg",
"scope" : "openid profile offline_access webid",
"grant_types" : ["refresh_token","authorization_code"],
"response_types" : ["code"],
"default_max_age" : 3600,
"require_auth_time" : true
}
1 change: 1 addition & 0 deletions src/ldf-client-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ if (typeof global.process === 'undefined')
oidcIssuer: $idp.val(),
redirectUrl: window.location.href.replace('#', '?'), // OIDC does not allow hash fragments, so we encode it as query param
clientName: 'Comunica Web Client',
clientId: 'https://query.linkeddatafragments.org/solid-client-id.json',
});
}
return false;
Expand Down
8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = [
path.join(__dirname, './images/settings.svg'),
path.join(__dirname, './images/sparql.png'),
path.join(__dirname, './favicon.ico'),
path.join(__dirname, './solid-client-id.json'),
path.join(process.cwd(), './queries.json'),
],
output: {
Expand Down Expand Up @@ -72,6 +73,13 @@ module.exports = [
{ loader: require.resolve('file-loader'), options: { name: '[name].[ext]' } },
],
},
{
type: 'javascript/auto',
test: /solid-client-id\.json$/,
use: [
{ loader: require.resolve('file-loader'), options: { name: '[name].[ext]' } },
],
},
{
test: /\.(jpg|png|gif|svg|ico)$/,
use: [
Expand Down

0 comments on commit 41986a7

Please sign in to comment.