Commit graph

634 commits

Author SHA1 Message Date
Mikołaj Pich
e27a5f19bb
Add student info impl via eduOne 2024-03-23 15:37:27 +01:00
Mikołaj Pich
545a90e2a0
Fix getToken implementation 2024-03-23 15:06:28 +01:00
Mikołaj Pich
dab976890f
Make field dyrektorzy nullable 2024-03-23 14:53:58 +01:00
Mikołaj Pich
cd31377aed
Add missing key query param to mobile devices, school and teachers endpoints 2024-03-23 14:51:50 +01:00
Michael
28fc7a7d40
Add basic device support for eduOne (#197) 2024-03-22 23:19:01 +01:00
Michael
67c637b91b
Fix description in eduOne grades (#196) 2024-03-22 22:30:19 +01:00
Michael
e0a5753e11
Add eduOne support for school and teachers (#195) 2024-03-22 22:18:17 +01:00
Mikołaj Pich
8e26580752
Make possible to detect is currently set up student have eduOne register 2024-03-22 00:33:03 +01:00
Mikołaj Pich
6261efbc3d
Always return list of timetable headers from eduOne timetable 2024-03-21 23:01:50 +01:00
Mikołaj Pich
ebd4a8b90b
Avoid adding StudentCookieInterceptor to student plus service 2024-03-21 22:56:52 +01:00
Mikołaj Pich
3ee9a2e132
Add missing timetable headers from eduOne 2024-03-21 21:14:16 +01:00
Mikołaj Pich
c847d37c9f
Fix tests 2024-03-20 02:00:20 +01:00
Mikołaj Pich
1ae931c5a0
Fix marking account as parent when loggin via eduOne account 2024-03-20 01:37:31 +01:00
Mikołaj Pich
da19305b31
Fix non authorized edu one students discovery 2024-03-20 01:23:35 +01:00
Mikołaj Pich
b2cc35e317
Forbid accessing to grade statistics methods in edu one mode 2024-03-20 00:42:59 +01:00
Mikołaj Pich
1b6e840917
Add missing semester fetch impl via eduOne 2024-03-20 00:31:51 +01:00
Mikołaj Pich
2583e044e7
Fix isEduOne flag 2024-03-20 00:16:36 +01:00
Mikołaj Pich
801089a7b1
Fix semesterId and diary name issues 2024-03-20 00:05:36 +01:00
Mikołaj Pich
e73761051a
Add error body to http errors if content body is json 2024-03-19 23:55:57 +01:00
Mikołaj Pich
72ec14c148
Fix url generator in registration for eduOne student 2024-03-19 23:51:07 +01:00
Mikołaj Pich
3e4d549d79
Expose isEduOne flag setter and getters 2024-03-19 23:50:48 +01:00
Mikołaj Pich
91e847ee47
Add support for conferences via eduOne 2024-03-19 23:25:34 +01:00
Mikołaj Pich
e86fd1b332
Add support for notes via eduOne 2024-03-19 23:05:00 +01:00
Mikołaj Pich
6bcdadad88
Improve some things in timetable changes parsing 2024-03-19 22:44:55 +01:00
Mikołaj Pich
dda1dc908b
Add support for lesson move with change in timetable 2024-03-19 22:24:21 +01:00
Mikołaj Pich
45cbe64fd0
Add support for lesson move change in timetable 2024-03-19 22:00:03 +01:00
Mikołaj Pich
f04da5385b
Add support for more teach change in timetable 2024-03-19 21:58:25 +01:00
Mikołaj Pich
d4f6f3571c
Add auto login to eduOne module 2024-03-19 21:23:01 +01:00
Mikołaj Pich
a618b19dd3
Add support for timetable via eduOne 2024-03-19 21:18:34 +01:00
Mikołaj Pich
990eecc5d5
Fix attendance summary 2024-03-19 20:29:10 +01:00
Mikołaj Pich
5cbe97b9a0
Add tests to eduOne homework 2024-03-19 20:18:18 +01:00
Mikołaj Pich
8428eb6ce9
Fix syntax errors in homework 2024-03-19 20:11:54 +01:00
Mikołaj Pich
a3da581298
Merge branch 'master' into eduone-homework 2024-03-19 20:00:40 +01:00
Mikołaj Pich
3c7d8b9545
Add support for attendance summary via eduOne 2024-03-19 20:00:19 +01:00
Mikołaj Pich
fd5eb26a9d
Don't try to auth uonetplus-uczen module when eduOne is enabled 2024-03-19 19:58:20 +01:00
Marioneq 4958
0d225dc30f Add student+ homework and fix teacherSymbol in exams 2024-03-19 19:07:10 +01:00
Mikołaj Pich
5bfcd16c0b
Add tests to eduOne exams 2024-03-19 18:12:34 +01:00
Mikołaj Pich
4071569fb4
Fix syntax and missing imports 2024-03-19 18:01:45 +01:00
Mikołaj Pich
1c67564742
Add tests to eduOne grades 2024-03-19 17:55:56 +01:00
Marioneq 4958
94083e087f Merge branch 'patch-1' of https://github.com/Marioneq4958/sdk into patch-1 2024-03-19 17:41:22 +01:00
Marioneq 4958
8f3a35c153 Exams 2024-03-19 17:39:57 +01:00
Mikołaj Pich
cc9615f5b1
Add missing paramters to getGrades() method 2024-03-19 17:36:34 +01:00
Mikołaj Pich
d17eaa2190
Merge branch 'master' into patch-1 2024-03-19 17:35:02 +01:00
Mikołaj Pich
db89678f5b
Update dependencies 2024-03-19 17:34:31 +01:00
Marioneq 4958
f53fc32821 Add getGrades() in StudentPlusService 2024-03-19 15:28:27 +01:00
Marioneq 4958
eaff0f4bf2 Update GradesResponse.kt 2024-03-19 15:00:08 +01:00
Marioneq 4958
eb2a967ef6
Update Grade.kt 2024-03-19 13:59:52 +01:00
Marioneq 4958
aba27876c2
Update Grade data class 2024-03-19 13:55:56 +01:00
Marioneq 4958
4a9dadc042
Add grades endpoint in StudentPlusService 2024-03-19 13:41:57 +01:00
Mikołaj Pich
41aef1a68b
Add support for register via eduOne 2024-03-19 00:33:58 +01:00
Mikołaj Pich
e97d565bbf
Fix expected response in excuse info in edu one attendance 2024-03-03 09:56:10 +01:00
Mikołaj Pich
bcb7797733
Fix api dump 2024-03-02 15:45:55 +01:00
Mikołaj Pich
83e59cca40
Don't throw error from student module login if there is only eduOne module available 2024-03-02 15:37:43 +01:00
Mikołaj Pich
939e4428c8
Add missing homepage permissions token refreshing 2024-03-02 15:24:09 +01:00
Mikołaj Pich
04661c77f0
Rethrow original exception if login not succeed 2024-03-02 12:58:10 +01:00
Mikołaj Pich
c0b5cd2b63
Update dependencies 2024-03-02 11:07:55 +01:00
Mikołaj Pich
8ffd7b0d35 Add last announcement feature 2024-03-02 10:45:42 +01:00
Mikołaj Pich
e077867957 Add support for detect whole day excuses in old student module 2024-02-29 23:56:48 +01:00
Mikołaj Pich
b7081d1ac1 Fix error handling in message endpoints and add more info to http 403 json exceptions 2024-02-29 22:58:31 +01:00
Mikołaj Pich
fcdf0aaf1e Add registration token impl to edu one 2024-02-25 18:32:19 +01:00
Mikołaj Pich
73ad35c0e6 Add attendance excuse feature to eduOne 2024-02-25 17:00:55 +01:00
Mikołaj Pich
10040718e9 Add method to restore messages from trash 2024-02-25 14:29:54 +01:00
Mikołaj Pich
8143878d88 Add support for authorize eduOne student 2024-02-25 12:56:25 +01:00
dependabot[bot]
fbc50399e0
Bump io.mockk:mockk-jvm from 1.13.8 to 1.13.9 (#189) 2024-02-17 11:44:31 +00:00
Mikołaj Pich
b5f64f0dbc Check if every last used symbol exist if there is more than 5 symbol to check 2024-02-16 21:28:17 +01:00
Mikołaj Pich
743cc22760 Add initial symbol check in getUserSubjects() call 2024-02-16 21:10:43 +01:00
Mikołaj Pich
0171e7b246 Add missing FormUrlEncoded annotation to sendModuleCertificate methods 2024-02-09 22:35:39 +01:00
Mikołaj Pich
78fda15f02 Add additional module login before every *sensitive* endpoint call 2024-02-09 19:00:14 +01:00
Mikołaj Pich
8632c2f425 Fix saving module headers in auto login interceptor 2024-02-09 17:41:20 +01:00
Mikołaj Pich
fc4b8260ea Add method to SDK to check is symbol exist 2024-02-09 16:45:37 +01:00
Mikołaj Pich
4e64026b8f Refactor saveModuleHeaders 2024-02-09 14:45:15 +01:00
Mikołaj Pich
c8037914ca Add className to semester and student to help distinguish them 2024-02-07 19:49:10 +01:00
Mikołaj Pich
29bf265a71 Fix lint 2024-01-21 20:41:07 +01:00
Mikołaj Pich
5e066fe9a9 Add detecting cloudflare block page 2024-01-21 20:39:36 +01:00
Mikołaj Pich
81028998e1 Don't try to reach completed lessons endpoint if it is disabled in student config 2024-01-21 20:09:23 +01:00
Mikołaj Pich
ce3296fc43 Add missing status param to api/RealizacjaZajec endpoint 2024-01-21 17:13:33 +01:00
Mikołaj Pich
1056a1ff2a Add support for new AccountInactiveException error message 2024-01-21 16:21:16 +01:00
Mikołaj Pich
c900846ca9 Add implementation of completed lessons from studentplus 2024-01-18 18:14:28 +01:00
Mikołaj Pich
48af6bfc14 Always fetch student site cookies, fetch studentplus only if eduOne enabled 2024-01-18 18:00:41 +01:00
Mikołaj Pich
06a2e33822 Try to login to studentplus module if there is a url to that module for selected school on homepage 2024-01-18 17:20:43 +01:00
Mikołaj Pich
7017d55c81 Fix generating student key for eduOne endpoints 2024-01-18 16:54:37 +01:00
Mikołaj Pich
cd68beb772 Try to fix attendance when eduOne is on 2024-01-14 13:52:23 +01:00
Mikołaj Pich
0bba02045f Add some glue code to possible future closer integration with app cookie manager 2024-01-14 11:17:04 +01:00
Mikołaj Pich
640fb0913b Remove reusing of previously thrown error in auto login interceptor 2024-01-14 09:54:28 +01:00
Mikołaj Pich
60a6d31b45 Add writing to additional cookie manager from MergeCookieManager 2024-01-14 09:54:08 +01:00
Mikołaj Pich
b039d531c3 Save and attach csrf token from and to requests from subdomain modules 2024-01-13 22:18:01 +01:00
Mikołaj Pich
f23585e489 Fix cloudflare check and make it global 2024-01-13 00:07:11 +01:00
Mikołaj Pich
c2edf9498b Add MergeCookieManager to add additional cookies to suitable uri getters 2024-01-12 17:09:38 +01:00
Mikołaj Pich
d4d878065e Add user agent getter 2024-01-12 15:03:57 +01:00
Mikołaj Pich
a7f5fa26af Add CookieJarCabinet to manage multiple cookie stores 2024-01-12 14:53:45 +01:00
Mikołaj Pich
212f0e33d5 Expose alternative cookie manager used for registration 2024-01-12 11:54:00 +01:00
Mikołaj Pich
fd3d4ac624 Expose scrapper cookie manager 2024-01-12 10:46:39 +01:00
Mikołaj Pich
06ba354ef4 Add original url to cloduflare verification error exception 2024-01-12 10:44:54 +01:00
Mikołaj Pich
c895c42059 Add detecting cloudflare verificaiton page 2024-01-12 10:37:06 +01:00
Mikołaj Pich
e23e5bc2d2 Don't allow to throw runtime exceptions from auto login interceptor 2024-01-09 21:29:54 +01:00
Mikołaj Pich
8926db8525 Always clear cookies in sendCredentials method 2024-01-09 09:55:23 +01:00
Mikołaj Pich
04d34c018f Clear scrapper cookies only on e-mail, password or symbol change 2024-01-09 09:53:51 +01:00
Mikołaj Pich
6e3c3418b4 Make cookies jar static 2024-01-09 00:27:36 +01:00
Mikołaj Pich
e3951be709 Load cookies manually to retry requests in auto login interceptor 2024-01-08 23:38:23 +01:00
Mikołaj Pich
8c8af98a36 Bring back emptyCookieJarIntercept to fail not authorized requests quickly 2024-01-08 19:55:46 +01:00
Mikołaj Pich
4a7a502c1a Update homepage start path 2024-01-08 19:27:51 +01:00
Mikołaj Pich
e29d72ae09 Move chain.proceed call in auto login interceptor 2024-01-08 18:46:11 +01:00
Mikołaj Pich
7f6585b69c Save last error during auto login and throw it in other threads instead of retrying requests without session 2024-01-05 00:12:10 +01:00
Mikołaj Pich
444caeafa7 Version 2.3.3 2024-01-03 15:37:48 +01:00
Mikołaj Pich
ee396f1650 Limit coroutines usage in auto login interceptor to fix deadlock issues 2024-01-03 14:51:05 +01:00
Mikołaj Pich
f378f912d0 Fix student module url, add some logs, etc 2024-01-03 13:30:49 +01:00
Mikołaj Pich
7caaddcf51 Don't try to login to both messages and student modules 2024-01-03 12:54:31 +01:00
Mikołaj Pich
96464549f0 Change run blocking and return statements in auto login interceptor 2024-01-03 12:42:55 +01:00
Mikołaj Pich
62fcec2bb4 Move lock to auto login interceptor object 2024-01-03 12:29:54 +01:00
Mikołaj Pich
dbe881c05b Change synchronization block in autologin 2024-01-03 12:20:18 +01:00
Mikołaj Pich
b6566da99f Retry original requests outside of reentrant lock 2024-01-03 03:57:17 +01:00
Mikołaj Pich
526df3c8aa Update logger.debug place in autologin 2024-01-03 03:25:52 +01:00
Mikołaj Pich
2e615da85f Simplify reentrant lock in auto login interceptor 2024-01-03 03:09:18 +01:00
Mikołaj Pich
c0dc1bdfbb Use ReentrantReadWriteLock in auto login intereptor 2024-01-03 02:58:12 +01:00
Mikołaj Pich
40d7e85d75 Try to fetch cookies from both student and message module 2024-01-03 02:25:56 +01:00
Mikołaj Pich
ce4695a7a1 Restore reentrant lock logic to synchronize auto login interceptor 2024-01-03 02:13:48 +01:00
Mikołaj Pich
5000080a7a Don't clear cookies from auto login interceptor 2024-01-03 01:44:36 +01:00
Mikołaj Pich
049c428fd3 Synchronize whole requests in auto login interceptor 2024-01-03 01:31:46 +01:00
Mikołaj Pich
d9da6614e7 Move module cookies fetch logic to auto login interceptor 2024-01-03 00:58:41 +01:00
Mikołaj Pich
59384cafa1 Fix clearing start page cache on login completed 2024-01-02 19:02:30 +01:00
Mikołaj Pich
bfd4439132 Fix wtrealm url scheme for adfs cards 2024-01-02 00:47:50 +01:00
Mikołaj Pich
62d7b56a9d Fix clearing start page cache on login completed 2024-01-02 00:25:17 +01:00
Mikołaj Pich
65011203ec Don't try to clear studentStart cache if student start repo is not yet initialized 2024-01-01 23:22:01 +01:00
Mikołaj Pich
d77189664c Add missing start request in student start repo, add clearing start cache after successfull login 2024-01-01 22:15:01 +01:00
Mikołaj Pich
bd81855a28 Fix unit tests 2023-12-27 21:38:25 +01:00
Mikołaj Pich
a29fb83318 Update adfs light scoped wctx param 2023-12-27 21:33:00 +01:00
Mikołaj Pich
f16c029c16 Fix account permission exception message scraping 2023-12-27 19:45:42 +01:00
Mikołaj Pich
5f2128721c Fix students discovery after latest vulcan changes 2023-12-27 19:29:43 +01:00
Mikołaj Pich
e3706b0398 Fix handling new behaviour of LoginEndpoint.aspx in uonetplus-uczen and uonetplus-wiadomosciplus 2023-12-27 17:00:02 +01:00
Mikołaj Pich
11d2063201 Add full support for LoginEndpoint.aspx in uonetplus-uczen 2023-12-27 15:47:30 +01:00
Mikołaj Pich
46a4c3b139 Use LoginEndpoint.aspx endpoint instead of App directly 2023-12-22 18:10:39 +01:00
Mikołaj Pich
88fbdfc8d9 Make login url even more like the original one 2023-12-22 16:07:41 +01:00
Mikołaj Pich
fc3b386a2e Fix login to umt.tarnow.pl 2023-12-22 14:39:24 +01:00
Mikołaj Pich
f0c7093521 Update dependencies, update ktlint rules 2023-12-22 13:39:47 +01:00
Mikołaj Pich
29af590dd8 Update api dump 2023-12-22 12:59:10 +01:00
Mikołaj Pich
f6195151e3 Try to fix ADFSLightScoped login 2023-11-06 10:33:55 +01:00
Mikołaj Pich
e7540e7599 Add intermediate realm to main host login 2023-11-06 09:30:31 +01:00
Mikołaj Pich
8695e7bac5 Add not logged in error handling during registration 2023-11-05 23:10:27 +01:00
Mikołaj Pich
d062bd1a74 Remove missing LinkedAccountUids field in permissions fields, add some default values too 2023-11-03 22:06:42 +01:00
Mikołaj Pich
622c11a86b Fix parsing grade point percent if there is slash and some value which parsed to 0d 2023-10-18 21:32:29 +02:00
Mikołaj Pich
4eb33ca209 Update dependencies 2023-09-26 22:46:42 +02:00
Mikołaj Pich
6c1fe18065 Update dependencies 2023-08-24 23:30:56 +02:00
Mikołaj Pich
bca5158a1c Fix messed up params in sendPasswordResetRequest() call 2023-06-08 23:14:12 +02:00
Mikołaj Pich
96051b36bc Make description in grade descriptive scrpper pojo nullable 2023-06-05 21:17:14 +02:00
Mikołaj Pich
16cb07f73e Fix mapping not initialized attendance category when using eduOne fallback 2023-06-01 15:01:41 +02:00
Mikołaj Pich
d1486bade5 Fix duplicated json names in Conference pojo 2023-06-01 13:37:57 +02:00
Mikołaj Pich
773402ceb1 Add fallback to eduOne attendance if there is eduOne: true in student start page 2023-05-29 00:03:49 +02:00
Mikołaj Pich
f9be659490 Add descriptive grades 2023-05-28 23:03:20 +02:00
Mikołaj Pich
69651688f0 Add missing domain suffix in cookie interceptor 2023-05-28 23:03:20 +02:00
Mikołaj Pich
4a67e1e3fa Add domain suffix parameter 2023-05-28 23:03:17 +02:00