Commit Graph
70 Commits
Author SHA1 Message Date
Sead MulahasanovićandGitHub b3921f7d05 fix: session expiry (#886)
* fix: handle session inactivity expiry

* fix: clear all cookies on session expiry and throw LoginRequiredError

* chore: add diagnostic logging to session recovery flow

* fix: re-establish session on ERR_NETWORK before retrying

* chore: remove diagnostic logging

Partially reverts 706fd8e470

* fix(deps): bump form-data
2026-06-18 13:17:28 +02:00
mulahasanovic 9f4064b46e fix(deps): bump follow-redirects
resolve moderate advisory (GHSA-r4q5-vmmm-2653) via npm audit fix; formatting via npm run lint:fix
2026-04-14 09:54:51 +02:00
Yury a90f699abd feat(auth): added utils to get and check login header 2024-06-21 11:24:06 +03:00
Yury 2cca192f88 chore(auth-manager): added comment 2024-06-20 17:38:56 +03:00
Yury 053b07769a feat(auth): added multi-language support to logIn method 2024-06-20 17:15:05 +03:00
Yury fe47ca1152 fix(auth-manager): fixed redirectedLoginUrl 2024-02-19 08:50:19 +03:00
Allan BoweandGitHub ab8da28de1 Merge pull request #798 from sasjs/redirected-login-m8
fix: sas9 m8 redirected login
2023-04-05 15:14:16 +01:00
sabhas 5291e7f01c fix: regex for extracting login url fixed 2023-04-03 23:10:27 +05:00
medjedovic 39abdad518 fix: sas9 m8 redirected login 2023-04-03 12:48:32 +02:00
sabhas 99d783e174 fix: write a message to the log indicating that a login was not attempted as a valid session already exists 2023-03-24 15:11:10 +05:00
sabhas 17a3d1b8a9 fix: modify the reqgex to handle the loginForm response on latest sas9 2023-03-22 23:33:42 +05:00
medjedovic 1fb972d88a chore: improved url match 2023-02-21 16:10:14 +01:00
medjedovic 64f8f8c893 fix: removing .do from loginUrl mechanism 2023-02-21 16:04:50 +01:00
Saad Jutt a1c09ec802 fix(auth): login and check session returns username + user full name 2022-09-25 01:11:22 +05:00
medjedovic 2cbba38af5 chore: sas9 username parsing bring back 2022-09-22 16:58:39 +02:00
medjedovic 61fdf5573b chore: specs fixing, regex improve 2022-09-22 16:26:45 +02:00
medjedovic a01eb948b5 fix: sas9 extractUserName improvement 2022-09-22 01:05:53 +02:00
Saad Jutt e37bb182c3 fix(server): csrf cookie is created explicitly 2022-08-04 05:04:43 +05:00
sabhas d1fcc2ca0a fix: update logout url 2022-06-22 00:53:49 +05:00
medjedovic 6d50d4030e chore(git): Merge branch 'master' into auto-tests 2022-05-11 18:00:03 +02:00
Saad Jutt b8ea618f1e fix: removed getAuthCode function 2022-05-11 19:22:01 +05:00
Saad Jutt 10c72e6483 fix(login): making login requet with CSRF for SASJS server 2022-05-11 19:07:30 +05:00
medjedovic c243f25477 fix: deprecating sasjs client id 2022-05-09 13:26:17 +02:00
medjedovic e2e15ce8e1 fix: sasjs login login callback 2022-04-29 14:26:34 +02:00
medjedovic aabe473ef6 style: lint 2022-04-27 16:26:37 +02:00
medjedovic 8a7d08c3b9 chore(git): Merge branch 'master' into auto-tests 2022-04-27 16:26:02 +02:00
Saad Jutt c56874fe00 feat: login for web with server type SASJS 2021-12-09 17:13:47 +05:00
Saad Jutt 182de51f9b chore: added comments 2021-12-05 19:27:07 +05:00
Saad Jutt 712d1549c7 feat(server): added sasjs server support 2021-12-05 18:31:36 +05:00
Allan Bowe bc1a7dc54f chore: lint fix 2021-10-27 09:53:42 +00:00
Allan BoweandGitHub 93c267fd4e Update AuthManager.ts 2021-10-27 12:20:40 +03:00
Vladislav Parhomchik de5c38f0fb chore(deps): versions fix, authmanager default returns 2021-10-26 15:46:51 +03:00
Krishna Acondy d9c27efa8d chore(auth-manager): rename variable 2021-09-09 07:51:07 +01:00
Saad Jutt 3ae0809ee5 test(AuthManager): improved coverage 2021-09-09 04:37:30 +05:00
Saad Jutt a00bf5ba67 test(AuthManager): specs added for redirected login 2021-09-08 13:04:03 +05:00
Saad Jutt 19a57dbf6e chore: code refactor renamed variables/functions 2021-09-08 05:49:24 +05:00
Saad Jutt a1f5355d6a chore: fetch username for Redirected-Login and return 2021-09-07 05:26:42 +05:00
Saad Jutt 0972c0deaa chore(merge): Merge branch 'master' into redirected-login 2021-09-07 05:05:51 +05:00
Saad Jutt 351a22cb3c fix: deriving username with full name 2021-09-06 12:52:40 +05:00
Saad Jutt 3ccd35a4e2 fix: if username is not present in SAS9, derive it with full name 2021-09-06 12:42:26 +05:00
Saad Jutt 2a6e29b5b8 fix: username returns from checkSession 2021-09-01 03:49:44 +05:00
Saad Jutt e4d669f9b6 chore: typo fixed userName 2021-08-31 12:58:47 +05:00
Saad Jutt 5edf09e0a7 fix: usernames to lower case 2021-08-31 12:50:04 +05:00
Saad Jutt 5a695f495c chore: login returns username 2021-08-31 12:39:04 +05:00
Saad Jutt f231edb4a6 chore: redirect login with onLoggedOut callback 2021-08-31 12:36:20 +05:00
Saad Jutt 389ef94cd5 feat(login): redirect mechanism - in page link to open popup 2021-08-28 10:01:20 +05:00
Saad Jutt db7a5d601e fix(login): code refactor + sasjs-tests updated 2021-08-26 10:33:00 +05:00
Saad Jutt ee977f4fab chore(merge): Merge branch 'master' into extract-username-while-check-session 2021-08-26 09:02:40 +05:00
Saad Jutt 1a59f95be7 fix: split code to files + corrected usage of loginCallback 2021-08-25 07:55:04 +05:00
Saad Jutt 97918f301b chore(redirectLogin): centered popup + verifying sas9 login + sasviya login fixes 2021-08-22 03:57:23 +05:00