Commit Graph

2455 Commits

Author SHA1 Message Date
terrierscript
78ba85e74d Fix typo 2020-06-10 00:48:20 +01:00
Iain Collins
6d41089d48 Fix typo in introduction.md 2020-06-09 16:41:13 +01:00
Iain Collins
64b23d484d Fix typo in errors.md 2020-06-09 16:39:05 +01:00
StefanWerW
5f65e8c30d Update example.md 2020-06-09 15:50:39 +01:00
StefanWerW
49d560fa24 Update google.md 2020-06-09 10:04:33 +01:00
Iain Collins
36c469660e Update JWT docs 2020-06-09 09:44:35 +01:00
Iain Collins
416785941b Added JWT helper method 2020-06-09 09:44:35 +01:00
Iain Collins
799bd2dfaa Updated error docs and logger 2020-06-09 09:44:35 +01:00
Nico Domino
c0ccbc9274 WIP: Console Errors with URLs (#222)
* test: override console.error

* update: clean up test URL + test docs

* refactor console.error override into own iife

* update: import override into client + typeorm

* chore: organise errors.md page

* fix: lowercase errorCode required for hash

* update: refactor error fn into own fn instead of (ab)using console.error itself

* add: bold docs msg in console

* update: err function rename + prepare docs URL for prod
2020-06-08 17:57:03 +02:00
Nicola Molinari
0918cdbfa0 fix: missing file export jwt.js in npm release 2020-06-08 14:45:01 +01:00
Iain Collins
077f60e7c4 Allow session.get callback to use data from JWT 2020-06-08 12:25:01 +01:00
Iain Collins
96900e77f6 Fix typos in README 2020-06-08 10:56:17 +01:00
Iain Collins
f43343bd2c Reduce line length of comment in example 2020-06-08 10:45:54 +01:00
Iain Collins
8e69940ae6 Fix typos in documentation 2020-06-08 10:42:10 +01:00
Iain Collins
0d825bbc39 Refactor JWT, Sessions and add allowSignin() method (#223)
## Database

- [x] Databases are now optional - useful with OAuth + JWT if you only need access control
- [x] Updated documentation and added example code for custom database adapters

## JWT

- [x] JWT option is now an object that groups JWT related options together (was a boolean)
- [X] Refactored JWT lib and add AES encryption / decryption as well as signing / verification
- [x] Allows JWT encode/decode methods to be overridden as options
- [x] Contents of JWT can easily customised - without needing to use custom encode/decode
- [x] Exported JWT methods so they can be called from custom API routes
- [x] Updated documentation for new JWT options

## Sessions

- [x] All session options (eg. `maxAge`, `updateAge`) now grouped under single `session` option
- [x] Using JWT for sessions is now enabled from session object (`session.jwt: true`)
- [x] All options involving time now use seconds (instead of milliseconds) for consistency
- [x] Added option to customise the Session object that is returned from `/api/auth/session`
- [x] Update documentation for new Session options

## Other improvements

- [x] Added `allowSignin()` option to control what users / accounts are allowed to sign in
- [x] Refactored `callbackUrlHandler()` - this option  is now called `allowCallbackUrl()` 
- [x] Minor improvements to NextAuth.js client API methods
- [x] Minor to NextAuth.js API routes
- [x] Minor improvements to built-in error pages
- [x] Refactored database models
   All tables now include a `created` column for each row which contains the `datetime` of when the row (e.g. User / Account / Session) was created.
  Additionally, sessions now use the name 'expiry' for the expiry `datetime` value for consistency with other models.
2020-06-08 04:01:21 +01:00
Gerald Nolan
35123f005a Fixed Google Link 2020-06-07 11:51:05 +02:00
Lori Karikari
b25730fbd5 Simplified Auth0 config (#219)
* simplified auth0 conf and made domain stuff more consistent across providers that need one

* removed console.log()

* removed too much
2020-06-06 18:27:23 +02:00
Lori Karikari
585be4ce4a Seperate provider docs (#214)
* added page for Okta

* updated oauth section of provider docs

* added docs for each provider

* email provider
2020-06-06 15:20:01 +02:00
Gerald Nolan
3b5d4b6925 Added Link to ServiceID
Updated App Configuration link to Apple developer portal
2020-06-06 08:15:51 +02:00
dependabot[bot]
39471e9bae Bump websocket-extensions from 0.1.3 to 0.1.4 in /www
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-06 03:23:50 +01:00
Iain Collins
50039e5a6b Bump beta version to 62
This includes the OKTA provider and an improved README.
2020-06-06 03:02:10 +01:00
Iain Collins
cb31f9e554 Fix typos in in README.md URLs
🤦
2020-06-06 02:08:49 +01:00
Iain Collins
f21fb0f46d Update introduction.md 2020-06-06 02:05:04 +01:00
Iain Collins
13c6801c45 Update README.md 2020-06-06 02:04:40 +01:00
Iain Collins
1a1b0ffdc6 Add sharing image for Facebook and Twitter 2020-06-06 01:56:44 +01:00
ndo@ndo3
a638e2b27a chore: cleanup 2020-06-06 01:52:36 +01:00
ndo@ndo3
3ce64da78f update: line length to avoid horizontal scroll 2020-06-06 01:52:36 +01:00
ndo@ndo3
5537514b4f update: pull meta info from docusaurus config 2020-06-06 01:52:36 +01:00
ndo@ndo3
42363101f8 update: essential meta tags 2020-06-06 01:52:36 +01:00
ndo@ndo3
bdafc4a2f7 add: meta images / descriptions 2020-06-06 01:52:36 +01:00
Iain Collins
bdb1216119 Fix broken logo src 2020-06-06 01:52:36 +01:00
Iain Collins
e509c28a4f Update docs, mostly for custom pages 2020-06-06 01:52:36 +01:00
Iain Collins
4f5954938a Add logo 2020-06-06 01:52:36 +01:00
mdemin914
267a166895 adding support for Okta as a provider (#213) 2020-06-05 22:55:48 +02:00
Iain Collins
e655e3c550 Update client.md 2020-06-04 23:52:32 +01:00
Iain Collins
6ea00f44dd Update example for session() 2020-06-04 23:10:29 +01:00
Seva Maltsev
843c258dd3 Update client.md (#204)
Added example of using session for api routes
2020-06-04 16:21:46 +02:00
Iain Collins
c6c94b1805 Remove oudated information from CONTRIBUTING.md 2020-06-03 22:06:59 +01:00
Iain Collins
315d75e40b Fix bug parsing hostname from database URL
Resolves #200
2020-06-03 22:01:37 +01:00
Iain Collins
f8bfe0c613 Fix bug linking accounts when using JWT with Mongo
Resolves #198
2020-06-03 18:31:06 +01:00
Iain Collins
50b9743bb6 HOTFIX for incorrect params to createSession
Resolves #197
2020-06-03 09:14:51 +01:00
Iain Collins
9c9abf19a3 Update introduction.md 2020-06-03 05:02:27 +01:00
Iain Collins
51f9f6fe6f Update contributors.md 2020-06-03 04:59:12 +01:00
Iain Collins
0c2c4cab69 Add JWT docs and update other docs 2020-06-03 04:41:43 +01:00
Iain Collins
ceb35cd036 Add JWT session support
* Now has jwt and jwtSecret options
* Set jwt: true to use JWT instead of DB for session
* Enable 'debug: true' to log JWT_SESSION_TOKEN to console if you want to see what it contains
* Magical!
2020-06-03 04:41:43 +01:00
Iain Collins
f9d0719ec4 Fix sessionExpiry on updateSession 2020-06-03 04:41:43 +01:00
Iain Collins
40f36e5ee9 Improve note on client API docs 2020-06-01 18:30:33 +01:00
Iain Collins
e9903d5391 Add documentation about provider client method 2020-06-01 18:22:27 +01:00
Gerald Nolan
a5bc38e61c Updated apple.md (#194)
Convert .k8 to single line to use as environment variable
Added additional comments on how to generate local certificate/edit host file
2020-06-01 19:19:57 +02:00
Iain Collins
6df7322493 Fix bug in Apple provider 2020-06-01 17:48:06 +01:00