Changsoon Bok
db65afe5ab
fix(providers): fix url and auth method for Kakao provider ( #3501 )
...
* fix(providers): fix url and auth method for Kakao provider
* fix(providers): convert typescript - Kakao provider
fix(providers): convert typescript - Kakao provider
* chore(providers): use nested interface for consistency
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-10 11:31:55 +01:00
Changsoon Bok
36ca1f99e3
docs: update contributing guide link ( #3595 )
2022-01-10 11:22:58 +01:00
Thang Vu
9bec96784f
chore(dev): add postinstall in app to remove next-auth ( #3575 )
2022-01-08 00:43:38 +01:00
Thang Vu
227ff2259f
chore: add eslintIgnore in package.json ( #3548 )
...
* fix: add eslintIgnore in package.json
* Let eslint runs in app, config + js files
* Add a separate tsconfig.eslint.json file
We want to run the lint command on `app`, `src` and `config`, but at the same time want `tsc` to compile files in `src` only. A separate `tsconfig.eslint.json` is a suitable solution to satisfy both `eslint` and `tsc`: 04d1f3e549/packages/parser/README.md
2022-01-05 04:02:03 +01:00
Yves Fridelance
c71cb8457d
fix(oauth): set httpOptions before issuer discovery ( #3537 )
...
* Update client.ts
Set custom.setHttpOptionsDefaults before Issuer.discover(.wellKnown). This allow discover the .wellKnown endpoint behind a proxy
* chore: address code review
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-02 00:04:23 +01:00
krautwigundrüben
a09a75be53
fix(providers): make Strava work again ( #3520 )
...
* Update strava.js
Auth with Strava was throwing errors before, this works.
* Update strava.js
changed according to commenters' suggestions
* chore: run linter
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2022-01-02 00:00:33 +01:00
Balázs Orbán
c4936991e5
chore(app): upgrade dev app dependencies
2021-12-31 00:41:59 +01:00
Thang Vu
e2add6a597
chore(dev): fix start email script ( #3541 )
2021-12-30 22:42:26 +01:00
Adam Kaczmarek
0e8be0c7d2
docs: fix OpenCollective link in README.md ( #3494 )
v4.0.6
2021-12-22 00:42:21 +01:00
Ivan Esteban
d1d2d977fe
fix(providers): use idToken by default in Cognito provider ( #3448 )
2021-12-18 02:21:20 +01:00
Kirankumar Ambati
48749d7320
fix(pages): remove default placeholder for credentials provider ( #3451 )
...
* fix #3449 : removed default placeholder for credentials provider
* fix: formatting
2021-12-18 02:10:05 +01:00
Drew Miller
87d0beb70c
fix(jwt): use authorization header as fallback ( #3453 )
...
If the `req` sent to `getToken` doesn't have the relevant cookies, use
the Bearer token in the Authorization header as a fallback.
Fixes #3452
2021-12-16 13:37:03 +01:00
Balázs Orbán
978e2eeb08
chore(dev): minor fixes on dev app
2021-12-11 21:19:12 +01:00
Balázs Orbán
8ab057ea33
chore(deps): ugprade dependencies ( #3415 )
2021-12-11 21:17:22 +01:00
Bogdan Soare
2c269a6a81
fix(providers): use id_token by default on Okta provider ( #3418 )
2021-12-11 12:52:40 +01:00
Alessandro Cuppari
8b9a109255
fix(providers): refactor FusionAuth to v4 ( #3376 )
...
* feat: updated fusionauth provider
* Updated fusionauth profile interface docstring
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Refactored openid well know logic
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* Removed jwks endpoint property
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-12-09 21:48:01 +01:00
Etienne Martin
ac35d9f739
docs: Fix README.md typo ( #3412 )
2021-12-09 16:53:17 +01:00
Balázs Orbán
30a0fc6bc0
fix: properly handle callback URL fallback ( #3402 )
...
* fix: don't default to localhost on `host`
* fall back to `host` for `callbackUrl`
* use parsed host
* remove unnecessary type cast
v4.0.5
2021-12-08 18:20:33 +01:00
Balázs Orbán
b0f6175cec
chore(deps): upgrade next dev dependency
2021-12-08 17:50:25 +01:00
Balázs Orbán
1c7fe57edb
fix: default to VERCEL_URL for callbackUrl
v4.0.4
2021-12-08 17:43:49 +01:00
Balázs Orbán
59797bbdef
fix: use VERCEL_URL by default for secureCookie ( #3399 )
v4.0.3
2021-12-08 17:22:57 +01:00
Paul Büchner
9eb78a9de9
chore: fix typo in comment ( #3388 )
2021-12-08 03:07:26 +01:00
Balázs Orbán
2670bbb28f
docs: match docs page wording for SECURITY.md
2021-12-06 21:05:41 +01:00
DmitryScaletta
0431c2a334
fix(ts): improve types for encode/decode functions ( #3346 )
...
* fix: improve types for encode/decode functions
* fix: use Awaitable type for encode/decode functions
2021-12-04 02:09:48 +01:00
Rraji Abdelbari
5ac688cc18
fix(providers): convert 42 School profile id to string ( #3351 )
2021-12-04 02:08:48 +01:00
Anthony Ringoet
8ea75f0c1c
fix(ts): typo in Auth0Profile interface ( #3347 )
2021-12-04 02:06:23 +01:00
dnikomon
4dcdb62dca
fix: remove nextauth from authorization params ( #3332 )
...
Co-authored-by: Balázs Orbán <info@balazsorban.com >
v4.0.2
2021-12-02 19:43:42 +01:00
Nico Domino
1f4b7d8089
chore: add opencollective to package.json ( #3333 )
2021-12-02 12:50:14 +01:00
Balázs Orbán
fedb84872d
docs: add top contributors to package.json
v4.0.1
2021-12-01 16:44:20 +01:00
Balázs Orbán
c0dddfb77f
docs: upgrade README
2021-12-01 16:40:21 +01:00
Balázs Orbán
50fe115df6
Release v4
2021-12-01 16:32:35 +01:00
Jameel Khan
cc17ddf8aa
fix: Fallback to --color-text when no color-brand ( #3313 )
2021-12-01 15:01:11 +01:00
Balázs Orbán
8644e553ed
Merge branch 'main' into beta
2021-11-30 19:20:56 +01:00
Nisala Kalupahana
d1d0db43ea
feat(providers): ensure GitHub provider always gives an email ( #3302 )
...
* Ensure that GitHub provider always gives an email
* Update src/providers/github.js
Co-authored-by: Balázs Orbán <info@balazsorban.com >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-11-29 23:58:49 +01:00
Balázs Orbán
b01f6805d3
chore(providers): TS improvements ( #3295 )
2021-11-28 17:52:56 +01:00
Balázs Orbán
c44b860b9e
feat(providers): refactor Apple provider ( #2875 )
...
* chore: remove legacy code
* fix(providers): refactor Apple provider
* chore(dev): add Apple provider
* docs(providers): add `generateClientSecret` to JSDoc
* fix(providers): use `jose@4`
* fix(providers): use seconds since epoch, correct sign
* chore(providers): move secret generator into a script
2021-11-28 17:52:24 +01:00
Khánh Hoàng
22f74d7c4d
fix(providers): correct authorization url for Atlassian ( #2999 )
...
* fix(provider): correct authorization for Atlassian
* feat(providers): use wellKnown for better configuration
* fix(atlassian): switch back to raw config
* fix(providers): pass generic to `OAuthUserConfig`
Co-authored-by: Lluis Agusti <hi@llu.lu >
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-11-28 15:49:24 +01:00
Balázs Orbán
2570168660
fix: add custom error message when session required ( #3288 )
2021-11-28 15:38:02 +01:00
Balázs Orbán
187a1474f5
feat(oauth): expose httpOptions ( #3287 )
2021-11-26 23:40:58 +01:00
Kevin McKernan
4dc76749f2
fix(providers): Rewrite EVEOnline in TS, fix default scopes ( #2759 )
...
* refactor EVEOnlineProvider into typescript, fix default scopes
* Update src/providers/eveonline.ts
Co-authored-by: Balázs Orbán <info@balazsorban.com >
* update to new OIDC SSO endpoints
* set idToken: true
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-11-26 19:20:40 +01:00
Torben
35ee608d59
feat(providers): add Osu! provider ( #3234 )
2021-11-20 14:49:51 +01:00
Estevan Jantsk
0f132de115
feat(providers): add Pipedrive provider ( #3011 )
...
* Add Pipedrive as a provider
* convert pipedrive provider to ts
* remove others interface
* refactor(pipedrive): run prettier
Co-authored-by: Lluis Agusti <hi@llu.lu >
2021-11-17 23:07:29 +01:00
Balázs Orbán
31426b9435
fix(providers): match filename with 42 Provider's id ( #3225 )
2021-11-17 23:03:56 +01:00
Balázs Orbán
64b2a2c43b
fix: assert action when req.query isn't available ( #3222 )
...
* fix: assert `action` if `req.query` unavailable
* refactor: make `method` externally optional
2021-11-17 22:47:12 +01:00
Balázs Orbán
7beb3ff03b
refactor(providers): cleanup 42 ( #3221 )
2021-11-17 10:15:59 +01:00
Richard van der Dys
432876c011
fix(providers): refactor Zoom
...
* Added support for zoom in beta
* Converted to typescript
* rename
* Now reflects response from Zoom
* chore: Prettier
Co-authored-by: Balázs Orbán <info@balazsorban.com >
2021-11-16 23:37:03 +01:00
Balázs Orbán
15d1fab4c8
fix: correct assertion when Credentials only ( #3217 )
2021-11-16 23:16:12 +01:00
Rraji Abdelbari
5e803cd34c
refactor(providers): convert 42 to TypeScript ( #3211 )
2021-11-16 21:57:53 +01:00
Balázs Orbán
76bf524e8e
feat: make missing secret an error ( #3143 )
...
BREAKING CHANGE:
It is now required to set a `secret` in production.
v4.0.0-beta.7
2021-11-15 18:45:56 +01:00
Balázs Orbán
f9e0ef8d18
feat: introduce chunking when session cookie becomes too big ( #3101 )
...
If the expected cookie size would exceed the 4096 bytes most browsers allow, we split up the cookie value and put the content into multiple cookies, then assemble it upon reading it back. This eliminates the need for a database or user-land solutions in case the user wants to save more data or is constrained by their IdP for certain fields.
2021-11-15 10:30:26 +01:00