@nuts-foundation/auth
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "@nuts-foundation/auth", | ||
"version": "0.1.1", | ||
"description": "Lib to connect your frontend to the nuts-auth.", | ||
"version": "0.2.0", | ||
"description": "Lib to connect your frontend to nuts-auth.", | ||
"repository": "nuts-foundation/nuts-auth-js", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"license": "LGPL-3.0", | ||
"scripts": { | ||
"build": "webpack --mode production" | ||
}, | ||
"keywords": [ | ||
@@ -12,3 +16,16 @@ "nuts", | ||
"authentication" | ||
] | ||
], | ||
"files": [ | ||
"dist/index.js" | ||
], | ||
"sideEffects": false, | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"babel-loader": "^8.0.6", | ||
"webpack": "^4.39.2", | ||
"webpack-cli": "^3.3.6" | ||
}, | ||
"dependencies": { | ||
"qrcode": "^1.4.1" | ||
} | ||
} |
@@ -7,11 +7,16 @@ # @nuts-foundation/auth | ||
It connects to the auth server, polls for status, updates the UI and forwards the user to a given URL at success. | ||
The library helps you with the following: | ||
* Connections to the nuts-node | ||
* Creating login sessions | ||
* Polling for IRMA session status | ||
* Updating the UI on session changes | ||
* Forwarding the user to specific location after successful login | ||
* Gracefully handling browser reload during login sessions | ||
## Install | ||
From CDN: | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@nuts-foundation/auth/index.min.js"></script> | ||
``` | ||
$ npm add @nuts-foundation/auth | ||
``` | ||
@@ -21,8 +26,5 @@ ## Style guide | ||
Combine it with the NUTS style guide and get the frontend for free! | ||
https://github.com/nuts-foundation/irma-web-frontend | ||
## Dependencies | ||
This library depends on the [qrcodejs package from davidshumjs](https://davidshimjs.github.io/qrcodejs/) | ||
## Usage | ||
@@ -33,8 +35,5 @@ | ||
<link rel="stylesheet" href="//nuts-foundation.github.io/irma-web-frontend/application.css" /> | ||
<!--A lib to render qr-codes --> | ||
<script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs@gh-pages/qrcode.min.js"></script> | ||
<!--The nuts auth js lib --> | ||
<script src="https://cdn.jsdelivr.net/npm/@nuts-foundation/auth@0.1.0/index.min.js"></script> | ||
<!--The nuts auth js lib. Note: include path depends on your dev stack--> | ||
<script src="/node_modules/@nuts-foundation/auth/dist/index.min.js"></script> | ||
<section class="nuts-login-form irma-web-form"> | ||
@@ -55,3 +54,3 @@ <header class="header"> | ||
<section class="centered initialized"> | ||
<div id="qrcode"></div> | ||
<canvas id="qrcode"></canvas> | ||
</section> | ||
@@ -83,3 +82,3 @@ <section class="centered waiting-for-user"> | ||
```js | ||
nutsLogin = NutsLogin.init({ | ||
nutsLogin = nutsAuth.init({ | ||
nutsAuthUrl: "http://localhost:1323", | ||
@@ -86,0 +85,0 @@ qrEl: 'qrcode', |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
43803
1
4
3
0
87
4
+ Addedqrcode@^1.4.1
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcamelcase@5.3.1(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addeddijkstrajs@1.0.3(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpngjs@5.0.0(transitive)
+ Addedqrcode@1.5.4(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@2.0.0(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedy18n@4.0.3(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)