Commit graph

182 commits

Author SHA1 Message Date
Timothée Jaussoin
9e577de92a Fix #11 Remove table creation and removal + related code as it is now handled by FlexiAPI 2021-06-09 16:10:22 +02:00
Timothée Jaussoin
d2328e9580 Fix the application key retrieval (and opaque DIGEST authentication parameter)
Update the dependencies
Bump the package version
2021-06-09 15:20:27 +02:00
Timothée Jaussoin
daf44cb0c7 Fix #13 Add a new job to deploy the packages in the alpha directory 2021-06-03 15:30:38 +02:00
Timothée Jaussoin
fe279e3244 Remove totally the SQLite support
- Run all the migrations in the MySQL database
- Add foreign keys + cascade support
- Remove the AccountDeleting event (now useless)
- Simplify the related code
- Keep (for now), the FlexiSIP structure to ensure compatibility
- Update the README
- Update the test suite
2021-06-03 11:31:54 +02:00
Timothée Jaussoin
903da8652f XMLRPC was enforcing UTF8 for all the requests, enforces utf8mb4 for each queries like it is done in FlexiAPI (see https://github.com/laravel/framework/blob/v5.4.14/src/Illuminate/Database/Connectors/MySqlConnector.php#L55) 2021-06-01 15:13:00 +02:00
Timothée Jaussoin
2854ccff61 Complete the setup documentation regarding the flexisip_pusher 2021-05-17 16:02:13 +02:00
Timothée Jaussoin
10f31db713 Set back the set-admin command to id 2021-05-12 17:36:17 +02:00
Timothée Jaussoin
95ff7bc06c Remove the timestamp columns to allow a proper seeding
Bump version
2021-05-11 17:09:41 +02:00
Timothée Jaussoin
0279acca0c Add support for MySQL 5.5
Enable foreign key support for the external schema
Bump version
2021-05-11 16:45:19 +02:00
Timothée Jaussoin
ad69828d60 Use the external DB configuration as the local DB configuration by default
This allows admin to store all the tables in one unique DB
2021-05-11 15:27:14 +02:00
Timothée Jaussoin
8fcc6c1e46 Use the SIP and not the id anymore for the set-admin console command
Bump the package number
2021-05-11 10:36:12 +02:00
Timothée Jaussoin
02f1491408 Remove the var directory test 2021-05-06 15:07:05 +02:00
Timothée Jaussoin
a94e44f048 Check the correct path when installing the package 2021-05-06 14:53:16 +02:00
Timothée Jaussoin
48bc542097 Inject the account information as a Javascript variable
Check the registration and authentication status and inject this variable once the email is validated or the account authenticated
Bump the package number
Fix #8
2021-05-05 16:00:07 +02:00
Timothée Jaussoin
4fbdf5842b Remove the phone number validation and dependency
Fix #10
2021-05-05 11:32:36 +02:00
Timothée Jaussoin
8acd08607c - Fix an issue when the user set for the first time his email adress to his account (the old email was required)
- Fix an issue when a user want to do an email authentication on an account that is using the same email adress as another account
- Bump the package number
2021-05-04 11:27:21 +02:00
Timothée Jaussoin
d0cce36eeb Add a nice layout for the common errors, fix #5
Update the dependencies
Remove some old codes
Bump the package version
Move the throttle limit from 60 to 600
2021-05-03 12:07:57 +02:00
Timothée Jaussoin
1dca0b9924 Rework the .spec file to prevent issues when installing or reinstalling
Fix dependencies and cleanup in the Makefile with make deb
2021-04-29 16:23:33 +02:00
Timothée Jaussoin
f468bf3acf Adjust the .spec file to handle properly reinstallation/upgrade
Add dependencies when packaging for debian
2021-04-29 16:23:33 +02:00
Timothée Jaussoin
bbeaeaea66 Add DEB packaging 2021-04-29 16:23:33 +02:00
Timothée Jaussoin
a60fe69c6a Fix some authentication and redirection errors
Bump version to 63
2021-04-29 11:13:09 +02:00
Timothée Jaussoin
34462596d1 Bump package to version 62 2021-04-27 17:38:23 +02:00
Timothée Jaussoin
9cf86e1b6a Allow phone numbers to be set on the admin account creation API endpoint 2021-04-22 17:47:16 +02:00
Sylvain Berfini
13d5a2410a Fixed an issue in previous commit 2021-04-16 15:53:12 +02:00
Sylvain Berfini
6d2cf23a80 Attempt to fix activation issue 2021-04-16 11:48:56 +02:00
Timothée Jaussoin
43b34091af Create an "old" Admin account to prevent it to be removed by the SQL cleanup triggers
Update the dependencies
Bump package number
2021-04-15 12:04:26 +02:00
Timothée Jaussoin
8451277676 Remove the WhiteSpace limitation in the api for usernames during account creation
Update the dependencies
2021-04-12 15:55:51 +02:00
Timothée Jaussoin
c3df886ffa Add a Command to create an Admin test account 2021-03-31 16:13:08 +02:00
Timothée Jaussoin
0b5da6b16e Don't retrieve all the users from the BDD when trying to remove unconfirmed ones
Update the dependencies
Bump the build number
2021-03-23 11:07:30 +01:00
Timothée Jaussoin
324e63a1b9 Clear the route cache on install as well
Update the dependencies
Fix documentation
2021-03-04 15:12:37 +01:00
Timothée Jaussoin
46af75fea3 Add account expirations table
Complete POST /accounts admin endpoints
Handle expiration in email and phone endpoints
Complete documentation
Add related tests
Bump package version
2021-03-03 17:25:52 +01:00
Timothée Jaussoin
cd32657d21 Add Push notification token and account creation endpoints
Complete documentation
Complete tests
Update the dependencies
Bump the package number
2021-02-24 15:15:40 +01:00
Timothée Jaussoin
e2aeab285a Allow admin accounts creation through the admin account creation API
Fix a small issue in the account panel authentication controller (realm->domain)
Update the dependencies
Bump the release version
2021-02-15 10:05:33 +01:00
Timothée Jaussoin
3fdedda515 Bring back the confirmation_key in Account but only in Admin endpoints (for security reason)
Authenticate on the resolvedRealm and not the configured domain
Bump package
2021-02-11 17:59:41 +01:00
Timothée Jaussoin
4fc6aaa824 Resolve properly the domain/realm when hashing the password
Add aliases support through two new endpoints, allowing user to set a phone number on his account
Hide the confirmation_key from the returned account JSON
Bump version number
2021-02-11 16:06:20 +01:00
Timothée Jaussoin
bc3d1d1f38 Also allow similar usernames from different domains
Bump package version
2021-02-09 15:27:30 +01:00
Timothée Jaussoin
68f325f2fd Set the same behavior between API and the main form, same username between different domains are allowed
Bump package number
2021-02-09 14:17:10 +01:00
Timothée Jaussoin
e98e0bf003 Allow the Terms and Conditions to be set as URLs
Cleanup the old TaC pages
Update the dependencies
2021-02-09 13:58:32 +01:00
Timothée Jaussoin
b6959cc5dd Add support of realms in the authentication process through a global configuration variable 2021-02-03 15:33:07 +01:00
Timothée Jaussoin
cda7864c52 Ensure that the confirmation code is also generated when activated is set to false during the account creation process
Bump the package number
2021-01-18 17:54:29 +01:00
Timothée Jaussoin
a82d66bc48 Fix a missing use
Bump the version
2021-01-14 15:40:44 +01:00
Timothée Jaussoin
539cf21269 Complete the documentation
Return a validation code on the admin account creation endpoint if the validation is set to false
Move some endpoints to be more consistant
Enforce validated accounts for authenticated endpoints
Bump the package version
2021-01-14 14:29:16 +01:00
Timothée Jaussoin
70463ae687 Complete the API with new endpoints
Update the documentation
Bump the build number to 41
2021-01-13 14:47:22 +01:00
Timothée Jaussoin
1290b255c5 Bump RPM to version 40 2021-01-06 16:02:16 +01:00
Timothée Jaussoin
d0e7d10014 Update the dependencies
Add a everyone_is_admin config parameter for tests purpose
Fix DIGEST with liblinphone (split "email" in username + realm) and other adjustments
2021-01-05 15:35:51 +01:00
Timothée Jaussoin
ae3f235b46 Update to build 38 2020-12-07 15:42:01 +01:00
Sylvain Berfini
dc222ecd9e Added hooks to provisioning 2020-11-18 15:52:41 +01:00
Sylvain Berfini
1af265f9d4 Fixed digest auth algorithm issue (no algo was sent correctly during 401).
Fixed double algorithm issue when account only has one algorithm (missing hyphen), added logs, fixed indent.
2020-10-30 12:09:09 +01:00
Timothée Jaussoin
603f1a6686 Add the activated parameter in the API accounts creation command
Complete the README documentation to add the artisan commands
Add an API key authentication mechanism
Update the dependencies
2020-10-19 11:53:07 +02:00
Peio Rigaux
1922ff8eac Fixed bug in XMLRPC authenticator ('SHA256' typo instead of 'SHA-256' causing 401 because the authenticator can't understand the parameter), added Changelog 2020-10-16 15:55:33 +02:00