Skip to content

Commit de7c8ca

Browse files
author
Justin Kabonick
committed
Merge branch 'refs/heads/IdentityModel/dev' into new-master
2 parents 3732741 + cf85ac8 commit de7c8ca

114 files changed

Lines changed: 30196 additions & 25062 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.babelrc‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": ["es2015"],
3+
"plugins": [
4+
"babel-plugin-add-module-exports",
5+
["transform-es2015-classes", {
6+
"loose": true
7+
}]
8+
]
9+
}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.suo
66
*.user
77
*.sln.docstates
8+
.idea/
89

910
# Build results
1011

‎.npmignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sample/
2+
test/

‎README.md‎

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,54 @@
11
# oidc-client
22

3-
OpenID Connect (OIDC) client library
3+
Library to provide OpenID Connect (OIDC) and OAuth2 protocol support for client-side, browser-based JavaScript client applications.
4+
Also included is support for user session and access token management.
45

56
## Install
6-
To install you can either get the oidc-client via bower, via the dist folder in this repo, or you can clone this repo and run gulp yourself.
77

8-
As of now, there are not really any docs (sorry), but there are some samples in this repo.
8+
##### Node.js
9+
10+
Node.js v4.4 or later required.
11+
12+
##### NPM
13+
14+
`npm install oidc-client --save`
15+
16+
**NOTE**: if you're not already using [babel-polyfill](https://www.npmjs.com/package/babel-polyfill) make sure you run
17+
`npm install --save babel-polyfill` as well. Then include it in your build.
18+
19+
##### CommonJS
20+
If you don't use a package manager or a module loader, then you can get the library from the `dist` folder on github [here](dist).
21+
22+
## Including in the browser
23+
24+
If you intend to use this library directly in a browser and are not using UMD/AMD then there is a compiled version in the [~/dist](dist) folder.
25+
It is already bundled/minified and contains the necessary dependencies and polyfills (mainly for ES6 features such as Promises).
26+
27+
If you are using UMD/AMD and/or you already have included an ES6 polyfill (such as babel-polyfill.js) then you can include the UMD packaged version of the file from the [~/lib](lib) folder.
28+
29+
## Building the Source
30+
31+
```
32+
git clone https://github.com/IdentityModel/oidc-client-js.git
33+
cd oidc-client-js
34+
npm install
35+
npm run build
36+
```
37+
38+
## Running the Sample
39+
40+
`npm start`
41+
42+
and then browse to [http://localhost:5000](http://localhost:5000).
43+
44+
## Running the Tests
45+
46+
`npm test`
47+
48+
## Docs
49+
50+
Some initial docs are [here](https://github.com/IdentityModel/oidc-client-js/wiki).
51+
52+
## Feedback, Feature requests, and Bugs
53+
54+
All are welcome on the [issue tracker](https://github.com/IdentityModel/oidc-client-js/issues).

‎bower.json‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
22
"name": "oidc-client",
3-
"version": "0.3.0",
4-
"homepage": "https://github.com/IdentityModel/oidc-client",
3+
"description": "OpenID Connect (OIDC) & OAuth2 client library",
4+
"main": "dist/oidc-client.js",
55
"authors": [
6-
"Brock Allen <brockallen@gmail.com>",
7-
"Dominick Baier <dbaier@leastprivilege.com>"
6+
"Brock Allen & Dominick Baier"
87
],
9-
"description": "OpenID Connect (OIDC) client library",
10-
"main": "dist/oidc-client.js",
118
"license": "Apache-2.0",
9+
"keywords": [
10+
"oidc",
11+
"oauth",
12+
"openid",
13+
"identitymodel"
14+
],
15+
"homepage": "https://github.com/IdentityModel/oidc-client-js",
16+
"private": false,
1217
"ignore": [
1318
"**/.*",
1419
"node_modules",
1520
"bower_components",
16-
"test",
17-
"tests"
21+
"lib",
22+
"sample",
23+
"src",
24+
"test"
1825
]
1926
}

0 commit comments

Comments
 (0)