JSON Object Signing and Encryption (JOSE)
Planned Features
Dependencies
This package is a work in progress, dependent on other ongoing projects. Code
contained herein will be completed when the following dependencies are ready to
release:
The current contents of the repository should be considered a "sketch".
Scope of implementation
Usage in Browser
If you npm install jose
as a dependency, the Webpack'd minified bundle will be
available in the dist/
directory as jose.min.js
.
If you're actively developing/testing this lib, you can npm run dist
, and the
bundle will be rebuilt.
To use in the browser, simply import the bundle in a <script>
tag, and the lib
will be loaded into the window.JOSE
global variable.
Example test.html
file, to illustrate:
<html>
<head>
<script src="dist/jose.min.js"></script>
<script>
let jwt = new JOSE.JWT({
header: { alg: 'HS256' },
payload: { iss: 'https://forge.anvil.io' }
})
</script>
</head>
<body>
Sample usage of JOSE lib in a browser.
</body>
</html>
Running tests
Nodejs
$ npm test
Browser (karma)
$ npm run karma
MIT License
The MIT License
Copyright (c) 2016 Anvil Research, Inc.
Copyright (c) 2017-2019 The Solid Project