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

Modified Ui Authentication #135

Merged
merged 33 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a51d1fb
Resolve conflicts after rebase
BichraiX Jul 23, 2024
c73a126
feat : Updated Ui Authentication. Added a readme to clarify usage. mo…
BichraiX Jul 25, 2024
b33ef15
chore : prettier
BichraiX Jul 25, 2024
0329bb9
Merge branch 'full-id-service' into client-server-ui-auth-register
BichraiX Jul 25, 2024
cc05102
feat : refactored the code for /register and added tests
BichraiX Jul 25, 2024
bbc121e
chore : prettier
BichraiX Jul 25, 2024
3c2d212
feat : added function to get allowedFlows from the config for the reg…
BichraiX Jul 26, 2024
74e3831
chore : prettier
BichraiX Jul 26, 2024
2d2a9f7
feat : corrected toMatrixId function to comply with the spec. Added h…
BichraiX Jul 26, 2024
2d9d18d
chore : prettier
BichraiX Jul 26, 2024
dd4ae01
finalized UiAuth and register
BichraiX Aug 12, 2024
2bc3ede
feat : added length checking in addition to regex
h1ppox99 Jul 25, 2024
9f9ae6f
fix : fixed type syntax
h1ppox99 Jul 25, 2024
d8e8324
feat : added tests for regex
h1ppox99 Jul 25, 2024
227d066
feat: added getcapabilities endpoint
Mathixx Aug 8, 2024
0b03293
feat: added capability checks in profiles related endpoints // ensure…
Mathixx Aug 8, 2024
8e2140b
Decrease log level
guimard Aug 8, 2024
6b3b85f
Fix test
guimard Aug 9, 2024
69bdf7f
feat: added version API
Mathixx Aug 9, 2024
a9022c6
feat: added versions endpoint and updated the capabilities one with n…
Mathixx Aug 9, 2024
c245bc4
Fix some istanbul hooks
guimard Aug 9, 2024
6adaafa
Resolve conflicts after rebase
BichraiX Jul 23, 2024
bc06840
feat : Updated Ui Authentication. Added a readme to clarify usage. mo…
BichraiX Jul 25, 2024
e9ef8c3
feat : refactored the code for /register and added tests
BichraiX Jul 25, 2024
d4b7e78
feat : added function to get allowedFlows from the config for the reg…
BichraiX Jul 26, 2024
e630767
chore : prettier
BichraiX Aug 12, 2024
3e6ba47
fix : merge mistake
BichraiX Aug 12, 2024
f3060f0
fix : merge mistakes
BichraiX Aug 12, 2024
f8da622
Merge branch 'full-id-service' into client-server-ui-auth-register
BichraiX Aug 12, 2024
5da008b
fix : incorrect config file in login tests
BichraiX Aug 12, 2024
2314777
fix : removed useless token in db setup
BichraiX Aug 12, 2024
50eb7d6
fix : moved setupTokens to testData
BichraiX Aug 12, 2024
4868a18
fix : path to setupTokens in test file
BichraiX Aug 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions packages/matrix-client-server/src/__testData__/3pidConf.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/matrix-client-server/src/__testData__/buildUserDB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ const matrixDbQueries = [
'CREATE TABLE IF NOT EXISTS user_threepid_id_server ( user_id TEXT NOT NULL, medium TEXT NOT NULL, address TEXT NOT NULL, id_server TEXT NOT NULL )',
'CREATE TABLE IF NOT EXISTS "access_tokens" (id BIGINT PRIMARY KEY, user_id TEXT NOT NULL, device_id TEXT, token TEXT NOT NULL,valid_until_ms BIGINT,puppets_user_id TEXT,last_validated BIGINT, refresh_token_id BIGINT REFERENCES refresh_tokens (id) ON DELETE CASCADE, used BOOLEAN,UNIQUE(token))',
'CREATE TABLE IF NOT EXISTS refresh_tokens (id BIGINT PRIMARY KEY,user_id TEXT NOT NULL,device_id TEXT NOT NULL,token TEXT NOT NULL,next_token_id BIGINT REFERENCES refresh_tokens (id) ON DELETE CASCADE, expiry_ts BIGINT DEFAULT NULL, ultimate_session_expiry_ts BIGINT DEFAULT NULL,UNIQUE(token))',
'CREATE TABLE IF NOT EXISTS current_state_events (event_id text NOT NULL,room_id text NOT NULL,type text NOT NULL,state_key text NOT NULL,membership text)',
'CREATE TABLE IF NOT EXISTS "user_filters" ( user_id TEXT NOT NULL, filter_id BIGINT NOT NULL, filter_json BYTEA NOT NULL )',
'CREATE TABLE ui_auth_sessions(session_id TEXT NOT NULL,creation_time BIGINT NOT NULL, serverdict TEXT NOT NULL, clientdict TEXT NOT NULL,uri TEXT NOT NULL, method TEXT NOT NULL, description TEXT NOT NULL, UNIQUE (session_id))',
'CREATE TABLE ui_auth_sessions_credentials(session_id TEXT NOT NULL, stage_type TEXT NOT NULL, result TEXT NOT NULL, UNIQUE (session_id, stage_type),FOREIGN KEY (session_id) REFERENCES ui_auth_sessions (session_id))',
'CREATE TABLE ui_auth_sessions_ips(session_id TEXT NOT NULL,ip TEXT NOT NULL,user_agent TEXT NOT NULL,UNIQUE (session_id, ip, user_agent), FOREIGN KEY (session_id)REFERENCES ui_auth_sessions (session_id))',
'CREATE TABLE IF NOT EXISTS current_state_events (event_id text NOT NULL,room_id text NOT NULL,type text NOT NULL,state_key text NOT NULL,membership text)'
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,13 @@
}
],
"sms_folder": "./src/__testData__/sms",
"is_registration_enabled": true
"is_registration_enabled": true,
"is_email_login_enabled": true,
"is_registration_token_login_enabled": true,
"is_terms_login_enabled": true,
"is_recaptcha_login_enabled": true,
"is_password_login_enabled": true,
"is_sso_login_enabled": true,
"is_msisdn_login_enabled": true,
"registration_required_3pid": []
}
Loading
Loading