Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework auth #179

Merged
merged 10 commits into from
Jun 16, 2024
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "ejudge",
"url": "http://ioi-russia.vdi.mipt.ru/~ejudge/voronezh2023day1.xml"
"source": "http://ioi-russia.vdi.mipt.ru/~ejudge/voronezh2023day1.xml"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "ejudge",
"resultType": "IOI",
"url": "https://ejudge.strategy48.ru/regional-2021-d1.xml"
"source": "https://ejudge.strategy48.ru/regional-2021-d1.xml"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "ejudge",
"resultType": "IOI",
"url": "https://olympiads.ru/GDUvPbXKZ6lXalSG/external.xml"
"source": "https://olympiads.ru/GDUvPbXKZ6lXalSG/external.xml"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "pcms",
"url": "https://nerc.itmo.ru/archive/2022/standings.xml"
"source": "https://nerc.itmo.ru/archive/2022/standings.xml"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "pcms",
"url": "https://nerc.itmo.ru/archive/2021/standings.xml"
"source": "https://nerc.itmo.ru/archive/2021/standings.xml"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "pcms",
"url": "https://pcms.university.innopolis.ru/results/innopolis/2022-2023/final-main.xml",
"source": "https://pcms.university.innopolis.ru/results/innopolis/2022-2023/final-main.xml",
"resultType": "IOI"
}
2 changes: 1 addition & 1 deletion config/__tests/testsys_icpc/spbsu-2023-may/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "testsys",
"url": "http://acm.math.spbu.ru/cgi-bin/view.pl/m230514.dat"
"source": "http://acm.math.spbu.ru/cgi-bin/view.pl/m230514.dat"
}
2 changes: 1 addition & 1 deletion config/_achievements_simple/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"url":"http://nerc.itmo.ru/archive/2020/standings.xml",
"source":"http://nerc.itmo.ru/archive/2020/standings.xml",
"type":"pcms",

"emulation":{"speed":1, "startTime":"now"}
Expand Down
2 changes: 1 addition & 1 deletion config/_examples/cats_icpc/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type":"cats",
"url":"https://imcs.dvfu.ru/cats",
"source":"https://imcs.dvfu.ru/cats",
"cid":"5481581",
"timeZone":"UTC+10",
"resultType":"ICPC",
Expand Down
2 changes: 1 addition & 1 deletion config/_examples/cats_ioi/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"url":"https://imcs.dvfu.ru/cats",
"source":"https://imcs.dvfu.ru/cats",
"cid":"5974394",
"type":"cats",
"timeZone":"UTC+10",
Expand Down
8 changes: 5 additions & 3 deletions config/_examples/clics/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type":"clics",
"feeds": [
{
"login":"live",
"password":"$creds.cds_password_pretest_dhaka",
"url":"https://cds.storm.vu/api",
"source": {
"url": "https://cds.storm.vu/api",
"login":"live",
"password":"$creds.cds_password_pretest_dhaka"
},
"contestId": "pretest_dhaka"
}
]
Expand Down
2 changes: 1 addition & 1 deletion config/_examples/cms/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"type": "cms",
"activeContest": "ceoi22_5f2",
"otherContests": ["ceoi22_5f1"],
"url": "https://ceoi.hsin.hr/ranking/"
"source": "https://ceoi.hsin.hr/ranking/"
}
2 changes: 1 addition & 1 deletion config/_examples/dmoj-icpc/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "dmoj",
"url": "https://dmoj.ca/",
"source": "https://dmoj.ca/",
"contestId": "waterloo2023f",
"apiKey": "$creds.dmoj"
}
4 changes: 2 additions & 2 deletions config/_examples/krsu/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"type":"krsu",

"submissionsUrl":"https://olymp.krsu.edu.kg/web/api/contestsubmissions/submissions?apiKey=a1f4d25se3&size=1000000&lowerBound=-1&upperBound=2000000000&contest=772&probe=0&isAdmin=1",
"contestUrl":"https://olymp.krsu.edu.kg/web/api/contestsubmissions/contestinfo?apiKey=a1f4d25se3&id=772",
"submissionsSource":"https://olymp.krsu.edu.kg/web/api/contestsubmissions/submissions?apiKey=a1f4d25se3&size=1000000&lowerBound=-1&upperBound=2000000000&contest=772&probe=0&isAdmin=1",
"contestSource":"https://olymp.krsu.edu.kg/web/api/contestsubmissions/contestinfo?apiKey=a1f4d25se3&id=772",

"emulation":{"speed":5,"startTime":"now"}
}
Expand Down
2 changes: 1 addition & 1 deletion config/_examples/nsu/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"password": "$creds.nsu_password",
"olympiadId": 228,
"tourId": 11881,
"url": "https://olympic.nsu.ru/nsuts-new"
"source": "https://olympic.nsu.ru/nsuts-new"
}
2 changes: 1 addition & 1 deletion config/_examples/pcms/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type":"pcms",
"url":"https://nerc.itmo.ru/archive/2023/northern/nwq-2023.xml"
"source":"https://nerc.itmo.ru/archive/2023/northern/nwq-2023.xml"
}
2 changes: 1 addition & 1 deletion config/_examples/testsys/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "testsys",
"url": "http://acm.math.spbu.ru/cgi-bin/view.pl/n201206.dat",
"source": "http://acm.math.spbu.ru/cgi-bin/view.pl/n201206.dat",
}
2 changes: 1 addition & 1 deletion config/ceoi/2022/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "cms",
"activeContest": "ceoi22_5f2",
"otherContests": ["ceoi22_5f1"],
"url": "https://ceoi.hsin.hr/ranking/",
"source": "https://ceoi.hsin.hr/ranking/",
"emulation": {
"speed": 3,
"startTime": "now"
Expand Down
2 changes: 1 addition & 1 deletion config/chu/2023/d1/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type":"ejudge",
"url":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1499&action=getejudgelog",
"source":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1499&action=getejudgelog",
//"#timusSessionId":"123"
}
2 changes: 1 addition & 1 deletion config/chu/2023/d2/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type":"ejudge",
"url":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1500&action=getejudgelog",
"source":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1500&action=getejudgelog",
//"timusSessionId":"123"
}
2 changes: 1 addition & 1 deletion config/chu/2023/dress/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type":"ejudge",
"url":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1498&action=getejudgelog",
"source":"https://timus.online/admin/spacelog.aspx/log-2.xml?space=1498&action=getejudgelog",
//"#timusSessionId":"123"
}
12 changes: 9 additions & 3 deletions config/chu/2024/d1/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"type": "ejudge",
"url": "log-1605.xml",
//"url": {
// "url": "https://timus.online/admin/spacelog.aspx/log-1606.xml?space=1606&action=getejudgelog",
// "auth": {
// "cookies": {
// "ASP.NET_SessionId": "123"
// }
// }
//},
"source": "log-1605.xml",
"timeZone": "Asia/Yekaterinburg",
"authCookieName": "ASP.NET_SessionId",
"authCookieValue": "123"
}
12 changes: 9 additions & 3 deletions config/chu/2024/d2/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"type": "ejudge",
"url": "log-1606.xml",
//"url": {
// "url": "https://timus.online/admin/spacelog.aspx/log-1606.xml?space=1606&action=getejudgelog",
// "auth": {
// "cookies": {
// "ASP.NET_SessionId": "123"
// }
// }
//},
"source": "log-1606.xml",
"timeZone": "Asia/Yekaterinburg",
"authCookieName": "ASP.NET_SessionId",
"authCookieValue": "123"
}
2 changes: 1 addition & 1 deletion config/code-work/2023/main-tour/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type":"cats",
"url":"https://imcs.dvfu.ru/cats",
"source":"https://imcs.dvfu.ru/cats",
"cid":"6715954",
"timeZone":"UTC+10",
"resultType":"ICPC",
Expand Down
2 changes: 1 addition & 1 deletion config/code-work/2023/test/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type":"cats",
"url":"https://imcs.dvfu.ru/cats",
"source":"https://imcs.dvfu.ru/cats",
"cid":"6715945",
"timeZone":"UTC+10",
"resultType":"ICPC",
Expand Down
2 changes: 1 addition & 1 deletion config/code-work/2023/testTour/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type":"cats",
"url":"https://imcs.dvfu.ru/cats",
"source":"https://imcs.dvfu.ru/cats",
"cid":"6747059",
"timeZone":"UTC+10",
"resultType":"ICPC",
Expand Down
2 changes: 1 addition & 1 deletion config/ejoi/2023/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"type": "cms",
"activeContest": "day2",
"otherContests": ["day1"],
"url": "http://ranking.ejoi2023.kiu.edu.ge"
"source": "http://ranking.ejoi2023.kiu.edu.ge"
}
2 changes: 1 addition & 1 deletion config/fake/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "clics",
"feeds": [
{
"url": "http://localhost:8000",
"source": "http://localhost:8000",
"contestId": "",
"eventFeedPath": "",
"feedVersion": "2020_03"
Expand Down
2 changes: 1 addition & 1 deletion config/fed/2023-voronezh/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type":"ejudge",
"url":"http://ioi-russia.vdi.mipt.ru/~ejudge/voronezh2023day1.xml"
"source":"http://ioi-russia.vdi.mipt.ru/~ejudge/voronezh2023day1.xml"
}
8 changes: 5 additions & 3 deletions config/icpc-asia-pacific/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type":"clics",
"feeds": [
{
"login":"login",
"password":"password",
"url":"https://icpc2024-pacific-maingate.gusmachine.com/api",
"source": {
"url": "https://icpc2024-pacific-maingate.gusmachine.com/api",
"login":"login",
"password":"password"
},
"contestId": "3"
}
]
Expand Down
8 changes: 5 additions & 3 deletions config/icpc-europe/bapc-2022-2023/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type": "clics",
"feeds": [
{
"login": "$creds.login",
"password": "$creds.password",
"url": "https://cds.gehack.nl/api",
"source": {
"url": "https://cds.gehack.nl/api",
"login": "$creds.login",
"password": "$creds.password"
},
"contestId": "bapc2022"
}
]
Expand Down
10 changes: 6 additions & 4 deletions config/icpc-europe/dapc-2023-2024/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"type": "clics",
"feeds": [
{
"url": "https://cds.chipcie.ch.tudelft.nl/api",
"contestId": "DAPC-2023",
"login": "live",
"password": "password"
"source": {
"url": "https://cds.chipcie.ch.tudelft.nl/api",
"login": "live",
"password": "password"
},
"contestId": "DAPC-2023"
}
]
}
4 changes: 1 addition & 3 deletions config/icpc-europe/euc-2023-2024/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
"type": "clics",
"feeds": [
{
"url": ".",
"login": "live",
"source": ".",
"eventFeedPath": "",
"contestId": "EUC24",
"feedVersion": "2022_07",
"password": "pass"
}
]
}
8 changes: 5 additions & 3 deletions config/icpc-europe/nwerc-2018-2019/cds/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type":"clics",
"feeds": [
{
"login": "$creds.nwerc18_login_cds",
"password": "$creds.nwerc18_password_cds",
"url": "https://cds.gehack.nl/api",
"source": {
"url": "https://cds.gehack.nl/api",
"login": "$creds.nwerc18_login_cds",
"password": "$creds.nwerc18_password_cds"
},
"contestId": "nwerc18"
}
]
Expand Down
8 changes: 5 additions & 3 deletions config/icpc-europe/nwerc-2018-2019/native/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type": "clics",
"feeds": [
{
"login": "$creds.nwerc18_login",
"password": "$creds.nwerc18_password",
"url": "https://www.domjudge.org/demoweb/api",
"source": {
"url": "https://www.domjudge.org/demoweb/api",
"login": "$creds.nwerc18_login",
"password": "$creds.nwerc18_password"
},
"contestId": "nwerc18"
}
]
Expand Down
8 changes: 5 additions & 3 deletions config/icpc-europe/nwerc-2019-2020/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type":"clics",
"feeds": [
{
"login": "live",
"password": "monger-lawless-hymn-inhaler",
"url": "https://judge.gehack.nl:8443/api",
"source": {
"url": "https://judge.gehack.nl:8443/api",
"login": "live",
"password": "monger-lawless-hymn-inhaler"
},
"contestId": "3"
}
]
Expand Down
8 changes: 5 additions & 3 deletions config/icpc-europe/nwerc-2022-2023/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type":"clics",
"feeds": [
{
"login": "$creds.login",
"password": "$creds.password",
"url": "https://cds.chipcie.ch.tudelft.nl/api",
"source": {
"url": "https://cds.chipcie.ch.tudelft.nl/api",
"login": "$creds.login",
"password": "$creds.password"
},
"contestId": "nwerc2022"
}
]
Expand Down
8 changes: 5 additions & 3 deletions config/icpc-europe/swerc-2021-2022/contest/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
"type": "clics",
"feeds": [
{
"login": "live",
"password": "secret",
"url": "https://cds.swerc.eu/api",
"source": {
"url": "https://cds.swerc.eu/api",
"login": "live",
"password": "secret"
},
"contestId": "swerc2021"
}
]
Expand Down
Loading
Loading