Commit graph

119 commits

Author SHA1 Message Date
Steven Nguyen
014c613c93
fix: update secret returned from users.createSession()
1. Include at least 1 factor because the minumum number of factors
   required when mfa is disabled is 1.
2. Purge the cached user document to ensure the new session is included
   in subsequent requests for the user.
3. Fix the encoding of the secret to match other parts of the codebase.
2024-11-22 21:52:27 +00:00
Jake Barnby
1ed3dee135
Fix tests 2024-10-22 14:54:34 +13:00
Jake Barnby
0a22292d1b
Update tests 2024-10-22 14:35:11 +13:00
Christy Jacob
bfa253297b Merge branch 'main' of https://github.com/appwrite/appwrite into sync-1.6-main 2024-08-13 15:36:13 +00:00
Matej Bačo
d4a5891c0d Fix user JWTs without sessionID 2024-07-21 13:28:23 +00:00
Jake Barnby
b343158d19
Merge remote-tracking branch 'origin/main' into 1.6.x
# Conflicts:
#	.gitmodules
#	app/console
#	composer.lock
#	tests/e2e/Services/Health/HealthCustomServerTest.php
2024-07-10 19:11:04 +12:00
Christy Jacob
8dbf887ab1
Merge pull request #8324 from appwrite/refactor-usage-sn
Sync refactor-usage-sn into 1.5.x
2024-06-25 22:50:42 +04:00
Steven Nguyen
34b2e15243
fix(users): fix expire error when creating user session
Before this, the Create session API call would throw:

> Invalid document structure: Missing required attribute "expire"

This is because the `expire` attribute is required, but it was omitted
from the document. This PR ensures the `expire` attribute is set when
creating the session document.
2024-06-24 23:21:44 +00:00
Damodar Lohani
d19141fc6a sleep after password change 2024-06-24 07:49:18 +00:00
Christy Jacob
a2f27ec15f Merge branch '1.5.x' of https://github.com/appwrite/appwrite into sync-with-main 2024-06-21 13:11:35 +00:00
Damodar Lohani
349b78d5e5 fix assertion 2024-06-17 04:55:06 +00:00
Matej Bačo
11827216ff
Update tests/e2e/Services/Users/UsersBase.php
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
2024-05-29 09:32:58 +02:00
Matej Bačo
b1ff989c3f Implement tests, fix JWT maxAge 2024-05-28 09:25:54 +00:00
Torsten Dittmann
0a1d572c72 chore: run formatter 2024-03-06 18:34:21 +01:00
Matej Bačo
7beb9080fa Merge remote-tracking branch 'origin/1.5.x' into fix-empty-user-updates 2024-02-05 10:38:48 +00:00
fogelito
a782e20315 Merge branch '1.5.x' of github.com:appwrite/appwrite into json-parsing
 Conflicts:
	app/controllers/api/account.php
	composer.json
	composer.lock
	src/Appwrite/Platform/Tasks/CalcTierStats.php
	tests/e2e/Services/Account/AccountBase.php
2024-01-25 17:44:05 +02:00
Jake Barnby
8cfd194cc0
Fix user tests 2024-01-22 23:29:41 +13:00
Matej Bačo
311e9a75dd Allow empty values in PATH user service 2024-01-20 09:43:31 +00:00
loks0n
bc1858c516 chore: do not auto create accounts in users endpoints 2024-01-17 11:03:04 +00:00
loks0n
6bf82c3dc5 test: fix user token test 2024-01-15 11:30:54 +00:00
Jake Barnby
5044c0cafa
Fix users tests 2024-01-09 16:43:39 +13:00
loks0n
5c803f6eff Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-ssr 2024-01-08 11:41:55 +00:00
loks0n
8ea9706174 feat: Matej renaming plan 2023-11-30 11:35:52 +00:00
prateek banga
ee4c2d0e0d adds target when creating user via server endpoint 2023-11-28 18:42:34 +05:30
prateek banga
88f228c106 review changes 2023-11-21 15:11:09 +05:30
prateek banga
7ae614fe13 adds provider type in target 2023-11-14 18:14:07 +05:30
loks0n
df0271c56a chore: rename to 'custom' sessions 2023-11-02 13:22:10 +00:00
loks0n
c39426745c test: fix create custom session params 2023-11-02 13:15:29 +00:00
prateek banga
f5aa226b57 fix test 2023-10-26 00:02:22 +05:30
loks0n
a67ca55af5 fix: use queueForEvents in users 2023-10-23 11:32:09 +01:00
loks0n
07286e5864 Merge branch 'main' of https://github.com/appwrite/appwrite into feat-ssr 2023-10-13 11:05:22 +01:00
loks0n
8ab429b92f feat: replace session confirmation endpoints 2023-10-12 14:38:32 +01:00
loks0n
8379551510 test: fix warning 2023-10-11 16:59:44 +01:00
loks0n
0332d35d9e test: e2e universal token 2023-10-11 14:21:20 +01:00
Prateek Banga
bb52647366 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-mailgun-provider 2023-10-10 19:06:39 +05:30
Jake Barnby
aa1cf053f7
Add test ensuring no 500 on bad serach 2023-09-28 18:58:29 +13:00
prateek banga
c59887e8fb fixes issue in sub queries 2023-08-25 15:55:04 +05:30
prateek banga
a95c29d546 lint fix 2023-08-24 01:55:08 +05:30
prateek banga
ec54000263 adds test for target controllers 2023-08-24 01:54:25 +05:30
prateek banga
ac33d7828f Revert "Pint linter ran"
This reverts commit bf5f0a8419.
2023-08-24 01:53:52 +05:30
wess
bf5f0a8419 Pint linter ran 2023-08-23 13:12:43 -04:00
Steven Nguyen
8400394857
Add an endpoint to update user labels 2023-06-09 10:18:51 -07:00
Steven Nguyen
85a40bf82d
Add a new labels attribute to the Users collection
This labels attribute can be used apply labels to users. These labels
can eventually be used:

* with permissions to grant access
* to filter users in the Users collection
2023-06-05 14:12:28 -07:00
Jake Barnby
47586fedb5
Remove invalid test 2023-03-24 23:09:49 +13:00
Jake Barnby
702000ac2f
Remove redundant test 2023-03-24 22:28:39 +13:00
Damodar Lohani
6b6f9edbd6
Merge branch '1.3.x' into feat-13x-master-sync 2023-02-21 07:38:46 +05:45
fogelito
c4ae047833 Merge branch 'master' of github.com:appwrite/appwrite into feat-technical-debt-2
 Conflicts:
	app/init.php
	composer.json
	composer.lock
2023-01-16 10:24:37 +02:00
Damodar Lohani
fe472e5b36 Merge branch '1.3.x' of https://github.com/appwrite/appwrite into feat-password-history 2023-01-16 05:04:13 +00:00
Matej Bačo
ccc9432219 Merge branch 'master' into fix-1.2.x-conflicts 2022-12-27 08:29:10 +01:00
Jake Barnby
e86994b597
Add retries for flaky tests 2022-12-22 16:12:45 +13:00