Skip to content

Stage 6 #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 64 commits into from
Apr 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
3e24576
Add "gbrlsnchs/jwt" to Go libraries
Mar 7, 2018
3f8baf6
Include "gbrlsnchs/jwt" to libraries list
Mar 7, 2018
341babc
Add SwiftyJWT to JWT library list
Mar 8, 2018
75bd726
fix md syntax for title on README.md file
lbalmaceda Mar 8, 2018
c443947
Update java-jwt
adrogon Mar 13, 2018
a51222c
Update jose4j
adrogon Mar 13, 2018
a9ec3ff
Update nimbus-jose-jwt
adrogon Mar 13, 2018
3774a15
Update jjwt
adrogon Mar 13, 2018
0351704
Update prime-jwt
adrogon Mar 13, 2018
2152741
Update vertx-auth-jwt
adrogon Mar 13, 2018
798205e
Change default HMAC secrets to something that talks about minimum
sebadoom Mar 19, 2018
708e530
Add info about running tests in the README file.
sebadoom Mar 19, 2018
94b72d5
Rename current tooltip code to "time-tooltip" in preparation for other
sebadoom Mar 19, 2018
2a43e7c
Implemented HMAC weak secret tooltip.
sebadoom Mar 20, 2018
e72c8f5
Change missing font to Fakt.
sebadoom Mar 20, 2018
ee275b8
Add share button to website (design by design team).
sebadoom Mar 21, 2018
96322fe
Share button functional test.
sebadoom Mar 22, 2018
b0efa11
Fixed share button on mobile.
sebadoom Mar 22, 2018
0979477
Make things look better on mobile.
sebadoom Mar 22, 2018
3889e42
Minor positioning fix for Base64 checkbox.
sebadoom Mar 22, 2018
d6303ec
Merge branch 'UpdateJavaLibsVersion' of https://github.com/adrogon/js…
sebadoom Mar 22, 2018
4ac015b
Merge branch 'patch-1' of https://github.com/lbalmaceda/jsonwebtoken.…
sebadoom Mar 22, 2018
b1cc033
Manual merge of PR #290.
sebadoom Mar 22, 2018
2ccdeaf
Manual merge of PR #207.
sebadoom Mar 22, 2018
33cb198
Manual merge of PR #289.
sebadoom Mar 22, 2018
c60fcc8
Manual merge of PR #288
sebadoom Mar 22, 2018
10ef8a9
Merge branch 'SwiftyJWT' of https://github.com/Wstunes/jsonwebtoken.g…
sebadoom Mar 23, 2018
7dda075
Merge branch 'master' of https://github.com/gbrlsnchs/jsonwebtoken.gi…
sebadoom Mar 23, 2018
89fc3a0
Manual merge of PR #292.
sebadoom Mar 23, 2018
5e39b13
Manual merge of PR #287.
sebadoom Mar 23, 2018
536d3c6
Manual merge of PR #285
sebadoom Mar 23, 2018
be1e194
Fix library header for cpp3 library.
sebadoom Mar 23, 2018
8feb311
Manual merge of PR #193 + fixed logo.
sebadoom Mar 23, 2018
6307be0
Fixes #284: missing star counts
sebadoom Mar 24, 2018
aae97aa
Ignore VS Code config folder.
sebadoom Mar 27, 2018
375c9e1
Fixes #272: we now support plain RSA public keys without the X.509
sebadoom Mar 27, 2018
556998b
Fixes #141: adding/removing/editing libraries is now as simple as
sebadoom Mar 28, 2018
251f363
Added missing author URL for library.
sebadoom Mar 28, 2018
5d57800
Update README with instructions for adding or editing libraries.
sebadoom Mar 28, 2018
b31f002
README: use relative grunt.
sebadoom Mar 28, 2018
d061bc4
Separate languages into their own data files.
sebadoom Mar 28, 2018
179df92
Implements PR #299, PHP library update.
sebadoom Mar 28, 2018
7fcc6f7
Fix language filter dropbox.
sebadoom Mar 29, 2018
e2a9ae9
Library schema validation plus other tests.
sebadoom Mar 29, 2018
7a265d1
fix fragment callback parsing, parse other possible tokens
panva Apr 18, 2018
2ce0db1
add location parsing tests
panva Apr 18, 2018
56bae1b
use getTokensFromLocation for all token params
panva Apr 18, 2018
91cfa3f
isolate parsing tests
panva Apr 18, 2018
370fe18
Removed stray code.
sebadoom Apr 20, 2018
a8c6480
Do not put IDE files in .gitignore, handle them locally.
sebadoom Apr 20, 2018
6845f51
Manual merge of PR #301: new Go library.
sebadoom Apr 20, 2018
fbb63a5
Manual merge of PR #302: new Python library.
sebadoom Apr 20, 2018
a058353
Merge branch 'stage-6-extras' of https://github.com/panva/jsonwebtoke…
sebadoom Apr 20, 2018
c920ad6
Remove duplicate code, move functions of little use to better places.
sebadoom Apr 23, 2018
321f47b
Better support for tokens passed in URL fragment/hash.
sebadoom Apr 23, 2018
d235692
Fixes #39: implements claim description tooltips.
sebadoom Apr 24, 2018
8a474e3
Better strings.
sebadoom Apr 24, 2018
40ff55c
Use tippy for claims tooltips.
sebadoom Apr 24, 2018
50dc800
Merge time and claims tooltips.
sebadoom Apr 24, 2018
4d9559a
More claims are now explained.
sebadoom Apr 25, 2018
676aa2c
Remove old tooltip code.
sebadoom Apr 25, 2018
e38c9c2
Fix tests for new tooltip method.
sebadoom Apr 25, 2018
7628617
Improve behavior of claims tooltips, especially in Firefox.
sebadoom Apr 25, 2018
9f1ce9d
Version 2.1.0.
sebadoom Apr 25, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
.tmp
.DS_Store
npm-debug.log

11 changes: 11 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const extensionManifest = require('./manifest.json');
const getLanguages =
require('./views/website/libraries/support/get-languages.js');

module.exports = grunt => {
grunt.loadNpmTasks('grunt-contrib-copy');
Expand Down Expand Up @@ -108,6 +110,12 @@ module.exports = grunt => {

pug: {
website: {
options: {
//pretty: true,
data: {
languages: getLanguages()
}
},
files: {
'dist/website/index.html': 'views/website/index.pug',
'dist/website/introduction/index.html':
Expand Down Expand Up @@ -173,6 +181,9 @@ module.exports = grunt => {
files: [
'stylus/*.styl',
'stylus/extension/**',
// Yes, we still share styles with the website, it's really hard
// to refactor them out without breaking stuff
'stylus/website/**',
'views/*.pug',
'views/extension/**'
],
Expand Down
92 changes: 88 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,85 @@
##JWT.io
## JWT.io

<img src="https://cdn.auth0.com/blog/jwtio/jwtio.png"/>

[![Build Status](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io.png?branch=master)](https://travis-ci.org/jsonwebtoken/jsonwebtoken.github.io)

### How to add a library
To add a library, simply edit the right JSON file located at `views/website/libraries`. Each language gets its own file. Multiple libraries share the same language file.

To add a new language, simply add a JSON file in the same folder as the others. It will get automatically recognized. If you add a new language, you will need to provide a proper icon for it and place it in the `img` folder.

Here's a commented example of the .NET language file (`0-.NET.json`). All fields must have valid values unless noted:

```javascript
{
// Language name (unique)
"name": ".NET",

// Unique identifier that will be used as a CSS class
// for this language (only valid CSS class names).
"uniqueClass": "net",

// The language icon, SVG format preferred, should be placed
// in /img directory.
"image": "/img/1.svg",

// The color of header that displays the name of the language
// and the icon. This is a valid CSS color definition.
"bgColor": "rgb(42, 168, 229)",

// An array of libraries for this language.
"libs": [
{
// In case the library suffered from a vulnerability, the
// minimum version in which the vuln was fixed must be
// listed here. Optional (can be null).
"minimumVersion": "1.0.1", // or null

// Supported features, true for supported,
// false for not supported.
"support": {
"sign": true,
"verify": true,
"iss": true,
"sub": true,
"aud": true,
"exp": true,
"nbf": true,
"iat": true,
"jti": true,
"hs256": true,
"hs384": true,
"hs512": true,
"rs256": true,
"rs384": true,
"rs512": true,
"es256": true,
"es384": true,
"es512": true
},

// Author URL, can be GitHub profile, personal page
// company page, etc. Can be null.
"authorUrl": "https://www.microsoft.com", // or null

// Author name.
"authorName": "Microsoft",

// For the star count, this is the GitHub repository path,
// (usually user/repo). Can be null (no star count shown).
"gitHubRepoPath": "AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet", // or null

// URL for source code.
"repoUrl": "https://github.com/MSOpenTech/azure-activedirectory-identitymodel-extensions-for-dotnet",

// Install command, can be HTML or plain text.
"installCommandHtml": "Install-Package<br><a href=\"https://www.nuget.org/packages/System.IdentityModel.Tokens.Jwt/\">System.IdentityModel.Tokens.Jwt</a>"
}
]
}
```

### How to build

First, install the required dependencies:
Expand All @@ -15,11 +91,19 @@ npm install
In order to build (and run) the project execute:

```sh
grunt
./node_modules/.bin/grunt
```

You will find the generated files in the `dist` directory. For the website, you can run a server at its root. For example: `http-server dist/website`.
You will find the generated files in the `dist` directory. For the website, you can run a server at its root. For example: `http-server dist/website`. The default `grunt` task runs a server
at [https://127.0.0.1:8000](https://127.0.0.1:8000) and watches
for changes.

### Happy hacking!
To run tests, execute:

```
./node_modules/.bin/grunt test
```

Look at the end of the `Gruntfile` for other common tasks.

### Happy hacking!
38 changes: 38 additions & 0 deletions img/website/27.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 77 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "jwt.io",
"version": "2.0.0",
"version": "2.1.0",
"repository": {
"type": "git",
"url": "https://github.com/jsonwebtoken/jsonwebtoken.github.io"
},
"dependencies": {
"express": "^4.16.2",
"express-sslify": "^1.2.0"
"express-sslify": "^1.2.0",
"querystring": "^0.2.0"
},
"devDependencies": {
"@babel/core": "^7.0.0-beta.36",
Expand All @@ -18,7 +19,10 @@
"chai": "^4.1.2",
"chai-arrays": "^2.0.0",
"chai-as-promised": "^7.1.1",
"chai-json-schema": "^1.5.0",
"clipboard-polyfill": "^2.4.6",
"codemirror": "^5.33.0",
"deep-freeze": "0.0.1",
"flipclock": "^0.7.8",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
Expand Down Expand Up @@ -48,6 +52,8 @@
"sinon-chai": "^2.14.0",
"source-map-support": "^0.5.3",
"stylus": "^0.54.5",
"tippy.js": "^2.3.0",
"tv4-formats": "^3.0.3",
"uglifyjs-webpack-plugin": "^1.1.6",
"web-ext": "^2.4.0",
"webpack": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/dom-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ export const decodedTabLink =
document.querySelector('.tab-link a[href="#decoded-jwt"]');
export const encodedTabElement = document.getElementById('encoded-jwt');
export const decodedTabElement = document.getElementById('decoded-jwt');

export const editorElement = document.querySelector('#encoded-jwt .input');
export const decodedElement = document.querySelector('#decoded-jwt .output');

export const headerElement = document.querySelector('.js-header');
export const payloadElement = document.querySelector('.js-payload');
export const payloadTooltipElement =
document.getElementById('js-payload-tooltip');

export const signatureStatusElement =
document.querySelector('.validation-status.js-signature');
Expand Down
Loading