Commit graph

102 commits

Author SHA1 Message Date
Vitor Mattos
45cd3c374d
chore: Add SPDX header
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-05-14 12:32:04 -03:00
Vitor Mattos
d8512ab017
chore: split controller
Split AccountController to move visible signature methods to a dedicated
controller

Add specific header to identify the signer at public endpoints. This is
used when sign a document using email without account.

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-19 11:09:26 -03:00
Vitor Mattos
2b1a7f6541
feat: make public the method to retrieve the signature file
Signers that will sign without account need to retrieve the own
signature preview

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-18 20:26:40 -03:00
Vitor Mattos
cc1b240577
fix: remove non unicode chars when read certificate data
The non unicode chars throw error at function json_encode when convert
the array data to send as json at body of response

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-18 11:47:53 -03:00
Vitor Mattos
cc85e70261
fix: prevent insert when update element
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-12 14:46:26 -03:00
Vitor Mattos
cdc4b28c82
fix: Make possible edit and delete signature when unauthenticated
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-10 19:40:40 -03:00
Vitor Mattos
a88f39e59c
Fix: change UUID of pdf to be the signer uuid
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-04-01 15:24:03 -03:00
Vitor Mattos
5e5f671799
Use email as SAN (Subject Alternative Name)
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-03-14 22:08:45 -03:00
Vitor Mattos
9bdae56168
Implement route to show certificate parsed data
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-03-12 18:01:11 -03:00
Vitor Mattos
3c91968b09
Cover passsword CRUD with integration tests
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-03-08 12:25:10 -03:00
Vitor Mattos
07807ea67c
Make the endpoint to delete pfx acessible by non admin
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-02-29 16:00:11 -03:00
Vitor Mattos
aaffa8c0d0
Rename method to have a best meaning
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-02-21 20:35:20 -03:00
Vitor Mattos
9cb3a45130
Remove unecessary attribute
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-02-17 18:05:09 -03:00
Vitor Mattos
4522733c42
Move Sign Elements to dedicated service
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-02-03 17:23:27 -03:00
Vitor Mattos
5d12ccf40c
Save and retrieve signature when is not authenticated
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-31 20:10:46 -03:00
Vitor Mattos
0c70f627ee
Send and validate uuid to backend
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-30 17:08:55 -03:00
Vitor Mattos
fec3a3eab5
Fix the place of elements
Isn't at error object, need to be at success object

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-20 18:03:35 -03:00
Vitor Mattos
8355eee199
Return existing elements when add new element
To return the requests to API

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-20 17:52:58 -03:00
Vitor Mattos
e0e3ffdf1a
Implement type
Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-19 14:05:00 -03:00
Vitor Mattos
6371317cd3
Remove email mandatory when generate passowrd
email isn't used for now

Signed-off-by: Vitor Mattos <vitor@php.rio>
2024-01-18 23:17:15 -03:00
Vitor Mattos
c3bb560b7a
Add route to reset password
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-11-07 22:43:22 -03:00
Vitor Mattos
f91f52a91e
Add route to delete pfx file
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-11-07 21:40:11 -03:00
Vitor Mattos
a694f640d1
Add endpoint to upload pfx file
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-11-07 21:28:39 -03:00
Vitor Mattos
bdcbbb742b
Rename file_user to sign_request
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-11-02 23:39:34 -03:00
Vitor Mattos
2d7676dfce
Add header with license
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:27:41 -03:00
Vitor Mattos
396bb84758
Remove success from responses
Unecessary if we use the status code to signalize if is success or not

Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:27:40 -03:00
Vitor Mattos
8acf639180
Fix error when request new certificate by API
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:27:39 -03:00
Vitor Mattos
20d2a86fa3
Make possible use temporary pfx file with identifier different of account
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:27:39 -03:00
Vitor Mattos
a3f14dbf82
Fix data validation
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:26:59 -03:00
Vitor Mattos
12e9e8c9a7
Follow new array structure internally of methods
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:26:59 -03:00
Vitor Mattos
afd7d1de24
Convert annotations to arguments
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:25:15 -03:00
Vitor Mattos
4bc9cfa34d
Update to php 8.0
Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-09-26 19:25:15 -03:00
Lidio Santos
8e527660c0 Add message indicates to user's settings saved with success.
Signed-off-by: Lidio Santos <lidiosantosrj@protonmail.com>
2022-10-29 17:41:46 -03:00
Vitor Mattos
41cd1a5f65
Prevent psalm error
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-27 12:29:20 -03:00
Vitor Mattos
bcdd6b32ea
Make possible generate root cert with custom values
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-10-26 00:26:14 -03:00
Alice Fantoni
b6978f36f3 Feature: translation tips 2022-10-11 17:00:52 -03:00
Vitor Mattos
1bf9c045cd
Fix type 2022-09-06 16:55:23 -03:00
Vitor Mattos
e366c48199
Fix test order
Annotations
Bugfix: add array key
Typing
2022-03-12 22:21:49 -03:00
Vitor Mattos
2f79547388
Check if binaries exists 2022-03-05 10:06:08 -03:00
Vitor Mattos
e6a17eab17
Delete account files 2022-01-01 09:28:05 -03:00
Vitor Mattos
56c293595b
List approval files of user 2022-01-01 09:24:06 -03:00
Vitor Mattos
134013bf3c
Merge pull request #452 from LibreSign/feature/sms-token
Frontend: sms token
2021-12-05 22:55:50 -03:00
Vitor Mattos
7fee2118ed
Remove unecessary property 2021-12-05 18:39:18 -03:00
Vitor Mattos
fe8d78fafa
Fixes on listing identification documents to sign 2021-12-05 13:59:21 -03:00
Vinicius Reis
a86bf680f2 support email code generation 2021-11-29 00:58:53 -03:00
Vitor Mattos
eb0c0e76f6
Add code to sign file 2021-11-21 19:48:12 -03:00
Vitor Mattos
001e06abe9
Add endpoint to save account settings 2021-11-20 12:20:54 -03:00
Vitor Mattos
a1812881f4
Mock removed 2021-11-06 16:49:24 -03:00
Vitor Mattos
d35512a1ec
Implement query 2021-11-06 16:47:54 -03:00
Vitor Mattos
435c8496e2
Rename service and method 2021-11-06 08:29:44 -03:00