Commit Graph

256 Commits

Author SHA1 Message Date
Iain Sproat a749a96791 fix(server/auth/google): handle error parameter in request query (#5003)
- callback queries with query parameter key of `error` and value of `access_denied` were not being handled and resulting in passportService case for no user, no error, and a failureType of null.
- tokenerror seems not to result in google verify callback being called, so moving the logic to handle it to the passport authentication callback
2025-07-01 07:38:07 +01:00
Iain Sproat 33e480185e fix(passport): google strategy handle invalid grant errors (#4742) 2025-05-28 09:41:26 +01:00
Iain Sproat 15274d13cf chore(/auth/token): make thrown error more specific about message (#4830) 2025-05-27 17:47:28 +01:00
Chuck Driesler b4d2c61374 chore(apps): add workspace scopes to BI and Excel (#4823) 2025-05-27 10:25:37 +02:00
andrewwallacespeckle 6a1d277b16 fix(server): Add user to mailchimp onboarding audience if they are not in it
fix(server): Add user to mailchimp onboarding audience if they are not in it
2025-05-20 14:30:10 +02:00
Kristaps Fabians Geikins 9998ed2586 feat: personal project limits (#4759)
* base limits cleanup

* history limit tests

* canCreatePersonal & tests

* canInvite block

* WIP model check

* fix tests

* shared tests fix

* lodash import fix

* lint fix

* help update

* hopefully fixing test

* CR comment
2025-05-20 14:56:05 +03:00
Kristaps Fabians Geikins d2f2d95bb5 chore(server): migrate remaining tests to TS (#4772)
* auth tests migrated

* core tests

* pwdreset

* authz tests
2025-05-20 14:24:48 +03:00
andrewwallacespeckle 506176bf8e fix(server): Add user to onboarding audience if they are not in it 2025-05-20 12:23:48 +02:00
Iain Sproat cda139f53f chore(server/auth): improve error messages (#4207)
* chore(server/auth): improve error messages

* fix tests
2025-05-20 09:45:00 +02:00
Iain Sproat 43b0190720 Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-05-19 13:37:26 +01:00
andrewwallacespeckle 2f17b3f8b8 fix(server): Remove mailchimp step and journey ids (#4750)
* fix(server): Remove mailchimp step and journey ids

* Fix pre-commit - add end

* feat(server): use both onboardin and newsletter list audiences

* Fix type

* Remove unused triggerMailchimpCustomerJourney function

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2025-05-15 12:24:50 +02:00
Iain Sproat 1d932290d6 Merge pull request #4727 from specklesystems/iain/auth-service-tidy-error-handling
fix(server/auth): handle InviteNotFoundError and simplify handling
2025-05-14 14:02:36 +01:00
Mike c75081a21a Fix: Update PowerBI description (#4741) 2025-05-14 14:30:20 +02:00
Iain Sproat 91e9e9fcc9 Add tests, fix tests, and revert behaviour 2025-05-13 15:53:03 +01:00
Iain Sproat f913460aea Merge branch 'main' into iain/auth-service-tidy-error-handling 2025-05-13 14:47:58 +01:00
Iain Sproat 7751fee8a1 fix to match test expectations 2025-05-13 14:16:29 +01:00
Iain Sproat b23f21d8ee fix 2025-05-13 12:25:24 +01:00
Iain Sproat adbb53e206 fix(server/auth): handle InviteNotFoundError and simplify handling 2025-05-13 11:58:21 +01:00
Iain Sproat 86ebd8fbf9 more error handling and logging fixes 2025-05-13 10:51:11 +01:00
Iain Sproat 380667cea2 fix(server): mailchimp problems throw a sanitised error 2025-05-12 17:21:40 +01:00
Kristaps Fabians Geikins c6dcf18bdb feat(server): workspace project invite auto-accept (for existing wp members) (#4622)
* WIP ts

* DI fix & tests moved to TS

* auto-accept seems to work

* CR comments
2025-04-30 17:39:07 +03:00
Iain Sproat 413937c0fa Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-04-28 08:16:19 +01:00
Kristaps Fabians Geikins f1ae0916c6 feat(server): improved user/server profile mp tracking (#4540)
* user tracking

* server profile tracking

* style
2025-04-23 15:19:24 +03:00
Iain Sproat 920099c39f chore(readable code): use TIME_MS for readable durations
- we recently added TIME_MS helper; this applies it to existing durations
2025-04-18 17:51:43 +01:00
Iain Sproat 149cc1871e chore(logging): observability of operations related to auth 2025-04-14 13:36:03 +01:00
Gergő Jedlicska d5f81cc174 feat(auth): add worksapce read scope to desktop apps (#4365)
* feat(auth): add worksapce read scope to desktop apps

* fix(scopes): only add workspace scopes if workspaces enabled

---------

Co-authored-by: Charles Driesler <chuck@speckle.systems>
2025-04-10 11:58:23 +01:00
Kristaps Fabians Geikins 140fde3871 fix(server): fix registration test email provider (#4195) 2025-03-14 15:33:27 +02:00
Kristaps Fabians Geikins 50fd05afe8 feat(fe2): more viewer debugging improvements (#4193) 2025-03-14 12:47:58 +02:00
Iain Sproat 5655b3e758 fix(metrics): pass registry in to modules (#4113)
- ensure metrics are added to the correct registry
2025-03-06 08:37:05 +00:00
Iain Sproat ec0253c895 Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-03-04 16:36:43 +00:00
Iain Sproat d0d9d22fe2 chore(server): tidy up maybeLoggerWithContext (#4095) 2025-03-03 09:17:55 +00:00
Iain Sproat 63bb82736c Fix broken merge from main 2025-02-28 09:43:15 +00:00
Iain Sproat fb95dd3bdd Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-02-28 09:23:48 +00:00
Iain Sproat ce08e5e02d refactor(server): logging directory renamed to observability (#4077) 2025-02-28 08:43:54 +00:00
Iain Sproat 1eb7412fba Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-02-27 11:34:04 +00:00
andrewwallacespeckle 8c69f22e27 feat: Update user tags in Mailchimp when user completes onboarding questions (#4000)
* Add new updateMailchimpMemberTags function and use it in FE

* Pass tag data from FE

* Plan > Use case

* move onboarding types to shared package

* Check newsletter consent

* Changes from PR

* GQL
2025-02-27 11:29:00 +00:00
Iain Sproat 878650e9da Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-02-27 10:31:31 +00:00
Iain Sproat 735a14279e fix(server/auth): callback should not finalize auth if HTTP response already sent (#4044) 2025-02-27 08:37:43 +00:00
Iain Sproat 9e6a386925 Merge branch 'main' into iain/ratelimiter-should-respect-configuration 2025-02-26 14:35:09 +00:00
Mike 2ecb98146a Feat: prevent non work emails (#3993) 2025-02-26 10:55:02 +01:00
Iain Sproat 8d1aceb7fc incorporate PR review comment - set rate limit enabled once 2025-02-25 11:37:51 +00:00
Iain Sproat c593990b22 Move ratelimiter from services to utils 2025-02-25 09:27:24 +00:00
Iain Sproat 62b65bb566 wrap the logic into a callable function and add tests 2025-02-24 12:26:34 +00:00
Iain Sproat f42a3f1eef Use the same logic as the default error handler 2025-02-23 13:43:24 +00:00
Iain Sproat aecc16f04f handle rate limit error when registering users 2025-02-23 13:16:45 +00:00
Iain Sproat 01a49dffee fix(tests): enable rate limiter in a safe way (#4048) 2025-02-23 11:17:17 +00:00
Iain Sproat d9a333d23c Merge branch 'iain/test-enable-rate-limit-correct-way' into iain/ratelimiter-should-respect-configuration 2025-02-21 17:47:26 +00:00
Iain Sproat d2436e3a4d fix(ratelimiter): do not check rates if rate limiter disabled 2025-02-21 17:45:31 +00:00
Iain Sproat 00ed0f6139 fix(tests): enable rate limiter in a safe way 2025-02-21 17:16:57 +00:00
Iain Sproat d490f1575d fix(server/auth): actually delete refresh and auth tokens (#4027)
- resolves bug confirmed by Fabians https://github.com/specklesystems/speckle-server/pull/3880#discussion_r1959783741
2025-02-19 08:40:39 +00:00