22 Commits

Author SHA1 Message Date
Claus-Peter Hübner
1184666fe2 try to solve problem of dbUser-entity with emailContact in context 2022-08-26 14:42:37 +02:00
Moriz Wahl
8ca72beac8 use isAdmin of user to determine user role 2022-04-20 11:30:29 +02:00
Moriz Wahl
ac11d1fa60 store user entity created on authentication check in context to avoid further DB calls 2022-03-17 09:55:15 +01:00
Moriz Wahl
e7b104c3b5
Update backend/src/graphql/directive/isAuthorized.ts
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2022-03-14 16:27:36 +01:00
Moriz Wahl
fe38cec4ac further improvement of isAuthorized 2022-03-14 16:22:57 +01:00
Moriz Wahl
bc29e3d6a6 fix wrong db query in create user helper, improve isAuthorized, delete token to simulate unauthenticated 2022-03-14 16:17:11 +01:00
Moriz Wahl
ed84a1dd56 no resetDB and test for inalienable rights first 2022-03-14 15:35:39 +01:00
Moriz Wahl
35cc38ba7c introduce reset token, comment isAuthorized 2022-03-14 14:15:24 +01:00
Moriz Wahl
1dd9f52259 try to fix the token reset 2022-03-14 13:50:30 +01:00
Moriz Wahl
b361f12325 resolve relative paths in directives 2022-03-07 21:44:29 +01:00
8005b700c3
removed references and implemented implicit active record queries 2022-02-02 19:54:47 +01:00
5bc23a4857
remove typeorm from backend project and reference the one installed in database. This way the default connection of the enteties can be used - this was not possible before since the connection waa created in the backend typeorm, but the entities are defined in the database installation.
We now remove the typeorm from backend and rely solely on the database typeorm. We now can use both activeRecord and dataMapper pattern.
2022-02-01 04:14:54 +01:00
fcf7a9fbca
fix broken login with existing token in local store 2022-01-20 17:51:45 +01:00
897ff2ec6c
comment 2021-11-25 10:02:17 +01:00
ffc45d5cde
implemented JWT Admin role assignment 2021-11-25 09:52:01 +01:00
a3b87c39bf
moved hasRight into Role class
defined roles better
2021-11-24 19:41:26 +01:00
44365bccf1
refactored isAuthorized & implemented a new role & rights based system 2021-11-24 19:40:49 +01:00
8eb5c74ba8
encode buffer to hex when decoding the jwt, not everytime we use it 2021-11-22 15:55:57 +01:00
elweyn
75d7ff3905 Withdrew the comments. 2021-11-10 06:15:58 +01:00
elweyn
e8b9765a34 Withdrew the check on the sessionId when is authorized is called. 2021-11-10 06:13:29 +01:00
elweyn
195ea5ad89 Merge login_call_createUser to implementation of login. 2021-11-08 13:51:25 +01:00
d1f3e4e215
moved isAuthorized in directive folder
removed resolver index.ts and load it via glob pattern
2021-10-03 11:14:24 +02:00