0f3aadfccc
Add customDecoded optional function
...
customDecoded enables you to change the value of the decoded token. the decoded token is passed to the function and you can you do whatever you want with the decoded token and return it to be changed.
2019-10-28 01:32:06 +02:00
beff8d38da
Merge pull request #162 from Root-Core/fixure
...
Improved test coverage
2019-10-15 14:14:28 +02:00
2088d98fcd
Merge remote-tracking branch 'upstream/master' into fixure
2019-10-15 13:01:54 +02:00
8c9a31a16b
Improved test coverage
...
- Added tests for handshakes in namespaces (one roundtrip)
- Replaced misleading 'handshake' with 'authentication', where the second roundtrip is used
2019-10-15 12:54:02 +02:00
1c60171179
Merge pull request #155 from Root-Core/matwithonet1
...
Cherrypicked commits of #105 by matwithonet1
2019-10-14 08:08:36 +02:00
e66148fbb2
Workaround for node 4
2019-10-14 04:13:25 +02:00
8f2b55a7aa
Fixed travis
...
- Tests against Node 4, 8, 10, 12 and newest
Modernized:
- Use arrow functions
- Use string templates in examples and some code
- Use single quote for strings
2019-10-14 01:46:30 +02:00
93e6b59710
Merged with master
2019-10-13 15:55:36 +02:00
27c59c3b0f
Fixed auth.required
...
Misc:
- Resolved conflicts
- Added test case, to fail if server grants prohibited admin access
- Simplified test logic
- Prevented usage of "var" (used const / let instead)
- Formatting
- Cleanup
- Typos
2019-10-13 15:52:14 +02:00
945cb50d0a
Merge pull request #161 from Root-Core/fixes
...
Fixed regressions of b0cd246
and 3128fdf
2019-10-09 12:11:24 +02:00
31c0a24c87
Semicolon
2019-10-08 19:13:30 +02:00
3f980a5c71
Fixed regressions of b0cd246
and 3128fdf
...
3128fdf
:
- Secret can be a string or function
- Compatibility with older node versions
b0cd246
:
- Fixed dependencies
2019-10-08 18:56:18 +02:00
3128fdfee2
Merge pull request #158 from ansien12/patch-1
...
Add a check to make sure provided secret is a string.
2019-08-09 16:50:23 +02:00
67cc0fb846
Add a check to make sure provided secret is a string.
...
```
const JWTOptions: JwtAuthOptions = {
secret: process.env.JWT_SECRET as string,
timeout: 5_000,
decodedPropertyName: 'decodedToken',
};
```
Without the change I made and the options snipped above where the secret is actualy "undefined" because the .env file wasn't loaded yet you get a really weird situation that's very hard to debug.
With "undefined" used as secret the client will successfully connect and send its "authenticate" event without a problem. But the server will not do anything. No errors, no timeouts, nothing.
2019-07-30 22:00:08 +02:00
4482bdd1c1
Merge pull request #157 from ProductOfAmerica/master
...
Fixed problem with not being able to execute. ALL tests are now running.
2019-07-25 09:31:38 +02:00
196706aef7
Fixed problem with not being able to execute. ALL Tests are now running successfully.
2019-07-24 18:46:06 -07:00
f3becae0a9
update to later version of jsonwebtoken to fix security vulnerabilities - DK/BM
...
Changes by Root-Core:
- Whitespaces
- Code-Smells
- Some Deps were devDeps
- Little bug fixes (merge errors)
- etc..
2019-07-24 21:05:34 +02:00
173e02bbfc
change auth message [mb]
2019-07-24 20:44:40 +02:00
211f3af592
whitespace
2019-07-24 20:43:18 +02:00
27aaab3161
removed string templating as not supported by node 0.10 - DK/MW
2019-07-24 20:42:23 +02:00
7d437b29e6
changed tests to Node 0.10 style - DK/MW
2019-07-24 20:42:23 +02:00
17da40f720
updated README to include information about Auth Header Requirement - DK/MW
2019-07-24 20:42:20 +02:00
ef0983a702
added ability to enforce only header authorization versus query string authorization - DK/MW
2019-07-24 20:35:44 +02:00
2d390e66e6
going to be adding new options but want it within the same general authorizer test suite - DK/MW
2019-07-24 19:01:58 +02:00
c694bee8f5
dont instantiate the start function with a function as the options - DK/MW
2019-07-24 19:01:58 +02:00
bdbea069ad
testing lines of code that are not documented...and documenting them - DK/MW
2019-07-24 19:00:29 +02:00
7902478c82
Merge pull request #153 from Root-Core/patch-2
...
Update README.md
2019-07-24 17:26:48 +02:00
99177e4344
Merge pull request #106 from Root-Core/patch-1
...
Fix authentication for namespaces #95
2019-07-24 17:19:22 +02:00
17d5669a3e
Merge branch 'master' into patch-1
2019-07-24 17:15:04 +02:00
5321c3ed9d
Merge pull request #154 from Root-Core/patch-3
...
Update index.d.ts
2019-07-24 16:57:32 +02:00
d6d3eb66d2
Update index.d.ts
...
#118
2019-07-24 16:52:32 +02:00
28f9a4e409
Update index.d.ts
...
- Added cookie option to typings, as added in #134 by @Kaisle
2019-07-24 16:48:32 +02:00
e06fe3d0fc
Update README.md
...
- Removed text about chrome extension (seems to be irrelevant to this repo)
- Added example for Bearer Token / Authorization Header
- Unified to single quotes
- Added syntax highlighting for bash
- Changed `expiresInMinutes` to `expiresIn` (#117 )
- Added hint to run unit tests, before creating a PR
- Split example for socket.io <1 and >=1
2019-07-24 16:40:37 +02:00
b180c24a4c
Merge pull request #116 from Root-Core/typings
...
Added typescript definition file, exported UnauthorizedError
2019-07-24 16:03:20 +02:00
b0cd246794
Merge branch 'master' into typings
2019-07-24 16:03:10 +02:00
c4b2d37d8c
Merge pull request #152 from Root-Core/patch-2
...
Fixed merge error
2019-07-24 15:59:21 +02:00
1e47810c98
Fixed merge error
...
data was renamed to socket
2019-07-24 15:55:12 +02:00
4b4c336bb5
Update README.md
2019-07-23 15:22:23 +02:00
e4c5b973f4
Merge pull request #117 from Root-Core/misc
...
Renamed "data" to "socket", updated deps
2019-07-23 15:21:55 +02:00
a9944c762a
Merge branch 'master' into misc
2019-07-23 15:20:05 +02:00
a7097566c4
Merge pull request #151 from auth0-community/all-contributors/add-Root-Core
...
docs: add Root-Core as a contributor
2019-07-16 11:36:51 +02:00
ea7078077a
docs: update .all-contributorsrc
2019-07-16 09:36:36 +00:00
0f639e4d00
docs: update README.md
2019-07-16 09:36:35 +00:00
e38a983085
Merge pull request #150 from auth0-community/all-contributors/add-pose
...
docs: add pose as a contributor
2019-07-16 11:36:12 +02:00
f8ad92b396
docs: update .all-contributorsrc
2019-07-16 09:35:22 +00:00
91ba2424de
docs: update README.md
2019-07-16 09:35:21 +00:00
2a72aeab37
Merge pull request #149 from auth0-community/all-contributors/add-Amialc
...
docs: add Amialc as a contributor
2019-07-16 11:34:56 +02:00
82c324e586
docs: update .all-contributorsrc
2019-07-16 09:34:44 +00:00
88d0cce4d8
docs: update README.md
2019-07-16 09:34:43 +00:00
fb6052fbde
Merge pull request #148 from auth0-community/all-contributors/add-Annyv2
...
docs: add Annyv2 as a contributor
2019-07-16 11:34:23 +02:00