Skip to content

Commit 2f4f524

Browse files
Initial commit
1 parent 2a51772 commit 2f4f524

4 files changed

Lines changed: 107 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# solid-auth-oidc
2+
[![](https://img.shields.io/badge/project-Solid-7C4DFF.svg?style=flat)](https://github.com/solid/solid)
3+
[![NPM Version](https://img.shields.io/npm/v/solid-auth-oidc.svg?style=flat)](https://npm.im/solid-auth-oidc)
4+
5+
A Javascript authentication plugin for
6+
[`solid-client`](https://github.com/solid/solid-client) based on OAuth2/OpenID
7+
Connect.

‎package.json‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "solid-auth-oidc",
3+
"version": "0.0.1",
4+
"engines": {
5+
"node": "^6.0"
6+
},
7+
"description": "Authentication library for Solid client based on OAuth2/OpenID Connect",
8+
"main": "./lib/index.js",
9+
"files": [
10+
"index.js",
11+
"config-default.js"
12+
],
13+
"scripts": {
14+
"build": "npm run build-lib",
15+
"build-lib": "babel src -d lib",
16+
"postversion": "git push --follow-tags",
17+
"prepublish": "npm run build && npm run test",
18+
"preversion": "npm test",
19+
"standard": "standard src/*",
20+
"tape": "tape test/unit/*.js",
21+
"test": "npm run standard && npm run tape"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "https://github.com/solid/solid-auth-oidc"
26+
},
27+
"keywords": [
28+
"authentication",
29+
"oidc",
30+
"openid",
31+
"oauth",
32+
"oauth2",
33+
"webid",
34+
"solid",
35+
"decentralized",
36+
"web",
37+
"rdf",
38+
"ldp",
39+
"linked",
40+
"data",
41+
"rest"
42+
],
43+
"author": "Dmitri Zagidulin <dzagidulin@gmail.com>",
44+
"license": "MIT",
45+
"bugs": {
46+
"url": "https://github.com/solid/solid-auth-oidc/issues"
47+
},
48+
"homepage": "https://github.com/solid/solid-auth-oidc",
49+
"dependencies": {},
50+
"devDependencies": {
51+
"babel-cli": "^6.18.0",
52+
"babel-core": "^6.21.0",
53+
"babel-preset-es2015": "^6.18.0",
54+
"standard": "^5.4.1",
55+
"tape": "^4.6.3"
56+
},
57+
"standard": {
58+
"globals": []
59+
}
60+
}

‎src/index.js‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2016 Solid
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
If you would like to know more about the solid Solid project, please see
25+
https://github.com/solid/solid
26+
*/
27+
'use strict'
28+
29+
module.exports = ClientAuthOIDC
30+
31+
class ClientAuthOIDC {
32+
}

‎test/unit/auth-test.js‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict'
2+
3+
const test = require('tape')
4+
5+
test('passing test', t => {
6+
t.ok(true)
7+
t.end()
8+
})

0 commit comments

Comments
 (0)