Manuel Imperiale
0a6b2f135a
MF-1567 - Use Bearer, Thing or Basic scheme in Authorization header ( #1568 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-03-06 01:49:34 +01:00
Manuel Imperiale
e5278c463f
MF-1348 - Add transport errors logging ( #1544 )
...
* MF-1348 - Add go-kit transport level logging
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remark
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix go test flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in things and http service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix SDK tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in certs and provision service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil errors in consumers service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* General renaming and add ErrMissingToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename httputil -> apiutil and use errors in users servive
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use apiutil errors in auth, bootstrap, readers, things and twins
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace errors.Contain by comparison
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateID
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify and rename ExtractAuthToken -> ExtractBearerToken
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix auth key test and remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify validateUUID check
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-03-03 17:13:46 +01:00
stefankovacevic123
5ca8495f35
MF-1469 - Indicate proper authentication scheme in Authorization header ( #1523 )
...
* MF-1469 - Indicate proper authentication scheme in Authorization header
Signed-off-by: Stefan Kovacevic <jen2tri@gmail.com>
* Fixing the remarks on the last push
Signed-off-by: Stefan Kovacevic <jen2tri@gmail.com>
* Remove Bearer prefix in all services and fix tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix remarks
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-02-18 14:56:01 +01:00
Manuel Imperiale
9972d1d1a4
MF-1240 - Return to service transport layer only service errors ( #1559 )
...
* MF-1240 - Return to service transport layer only service errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove unecessary errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated errors and fix transport
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert http endpoint_test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix conflict
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-02-14 22:49:23 +01:00
Ivan Milošević
1f8a221c22
MF-1059 - Add TLS support for email ( #1560 )
...
* Use gomail package for sending emails
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove print err
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Add vendor
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Rename email structure
remove logger
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* typo in var name
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* rename var
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove MF_EMAIL_SECRET
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2022-02-07 13:51:43 +01:00
Ivan Milošević
309ef512cb
MF-1521 - Fix email headers ( #1522 )
...
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-12-08 10:48:05 +01:00
Manuel Imperiale
9245e2593b
MF-1368 - Add internal http api package for query params reading ( #1384 )
...
* MF-1368 - Add internal http api package for query params reading
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use internal/http and internalhttp alias
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv errors types to pkg
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use httputil/query.go and remove aliases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add blank lines after error definitions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add ReadBoolValueQuery
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Mv readBoolValueQuery
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* User ErrNotFoundParam instead of pointer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert ReadUintQuery to use default values
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use default values for all query readers
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-03-23 11:48:05 +01:00
Mirko Teodorovic
530f925c4d
MF-1346 - Create Groups API - add grouping of entities ( #1334 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users endpoint for retrieving users from group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from things and users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups into auth
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate endpoints for users and things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problems with retrieving members
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups from things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename constant
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add new errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unnecessary constants
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* create groups db mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes to docker related files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups endpoints from users openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups endpoints from users openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move constant from postgres to groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove testing group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam typ to groupType
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add error for max level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove print
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups.Member interface
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix query building and add test cases
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* uncomment tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups package
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove group type, add bulk assign and unassign
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi, remove parentID from create request, reorder endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update openapi for users and things
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename assignReq structure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor mocks, response, remove type from endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* some refactor, renaming, errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify check
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove package alias
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming and comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* additional comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add members grpc endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix retrieving members for different types
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix retrieving members for different types
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unecessary structure
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix api grpc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename const
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactore retrieve parents and children with common function
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes for errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sorting in mock
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove regexp for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert as change is made by mistake
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert as change is made by mistake
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor groups and keys package
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test for timestamp compare
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove errors not being used
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* var renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add endpoints for groups into nginx
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, remove some errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, remove some errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix group save path problem
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* description constant
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* get back return
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-03-04 10:29:03 +01:00
Dušan Borovčanin
13c426c09c
NOISSUE - Support disabling Email Agent authentication ( #1356 )
...
* Fix mailer configuration
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove unused Driver option
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add Email Agent README
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-02-08 13:21:52 +01:00
Mirko Teodorovic
47217cb5b9
NOISSUE - Merge authz and authn into new service auth ( #1313 )
...
* remove owner id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move authz into authn and merge into new service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update proto
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mocks, some renaming, refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter err,and comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* undo renaming, add interface for authn and authz
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam some variables
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra slashes from comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving small remarks
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-29 23:02:35 +01:00
Mirko Teodorovic
d2af0602a0
NOISSUE - Fix dates not being init properly on save, change path construction, replace UUID with ULID for group ID ( #1300 )
...
* fix path, group saving with parent
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change path, enable name change
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes for port
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace UUID with ULID
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix migrations
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert user groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid provider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* enable group name change
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use null string for parent id
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove migrations, disable group delete if group not empty
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert docker compose
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid provider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove dash character replacment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add ulid lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename UUIDProvider
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename package alias
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused error
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-12-17 17:08:28 +01:00
Mirko Teodorovic
7195cad0f6
MF-397 - Introduce Thing Groups ( #1259 )
...
* add things group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add things group repository
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add parents and children methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix logging message and temporary test fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bootstrap test fail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to pkg
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move groups to internal
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix import
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments, add hierarchy info when retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* code refactor, separate http into multiple files
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix group update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* use user id when saving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove temporary test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments, fix responses in api for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add checks for name length
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix validation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small change to response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add comment for Level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
tidy vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level to limit hierarchy retrieval
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
mod tidy
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
small naming and code organize refactor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
revert Member type
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix typo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
use ltree
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level for retrieving
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add level
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
upgrade postgres version in test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
add ltre
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix id setting
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix tree endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
minor style changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding new lines
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change function signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplufy code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove groups test for now
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tabulation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix whitespace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove white space, fix grammar
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sqls so that not additional retrieve is needed
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
fix primary key
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
remove retrive by name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove name and parent update
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix cound sql
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify sql, fix table name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add date
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add timestamp to api
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var name
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-11-23 11:34:29 +01:00
Mirko Teodorovic
2453cd75ed
NOISSUE: Fix emailer ( #1219 )
...
* update swagger
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* dont return nil
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify emailer New
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2020-07-14 03:06:13 +02:00
Dušan Borovčanin
ea3a891c91
MF-1190 - Add pkg for library packages ( #1191 )
...
* Move messaging to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move errors to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Transformers to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move SDK to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Transformers from root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix make proto
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add copyrights header
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Auth client to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies and vendors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-06-03 15:16:19 +02:00
Ivan Milošević
d2153a8846
[NOISSUE] - Improve errors package ( #1086 )
...
* Init commit - implement errors package on things service
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* things service errors issue
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Decode errors
Add authn service to run script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Modify tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* service_test
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* debug lines
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Regulate tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Improve errors in Redis
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove dead code
Inline if conditions
Rename err var
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Transform errors messages to lowercase
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* improve errors package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* modify wrap method
inline wrapping errors in redis
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add copyright to errors package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* wrapping nil error returns wrapper (instead of nil)
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* move response messages in test to vars
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* golangcibot review fix
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* golangbot fix review in transport
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2020-03-30 15:22:18 +02:00
Ivan Milošević
0ab627730f
MF-538 - Improve logging and API errors ( #866 )
...
* user service - wraping errors
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* wrapping more errors
unwrap only wrapped errors
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add internal database error
Wrap internal database error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Wrap user not found error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Wrapping errors in idp and hasher
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Use error.Is for testing errors in Identify test
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Get wraper from wrapped errors
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Switch order of wrapping errors
Remove dead code (comments)
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* assert true in tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Change comparing errors in tests (assert.True)
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add errorRes structure to API responses in body in things service
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* resolve conflicts after rebasing
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Create errors package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* implement new errors package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Modify tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* return copyright comments
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove changes from .gitignore
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Move logging to encode errors
Comment exported vars and methods
Formatting
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Login function returns errors.Error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Modify login tests to meet login returning errors.Error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Error interface
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Change parameter in Wrapper to interface Error
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* implement new error interface
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Modify tests to use new Error interface
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix Login
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove unnecessary errir casting
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* new error interface implementation
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* check if Error is empty in registrationEndpoint
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Add Empty factory function
Use new Empty factory function
Use isEmpty method
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Lose else in encodeError
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Modify tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove *json.UnmarshalTypeError and *json.SyntaxError types from encodeError type switch
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix nil error value in jwtIdentityProvider
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix gprc to use new error package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* rename receiver in errors package
grpc errors
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove debugging code
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Resolving conflicts after rebase
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove comment
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Remove Empty from custom error
Implement custom error on new methods
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* WIP tests
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove wrap from Error interface
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* password-change related tests
remove debug code
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove dead code
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Move all errors casting to errors package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix comment in error package
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Change struct pointer to interface in package methods
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* resolving reviews
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix return in database.go
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix copyright header
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Fix comment in hasher
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2019-11-20 14:43:41 +01:00
Mirko Teodorovic
f4f938a730
MF-532 - Password reset ( #873 )
...
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* mail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* mail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reset request endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reset request endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reset request endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding reset passw endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding reset passw endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding reset passw endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logic for token verifying
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logic for token verifying
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logic for token verifying
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove mail from main
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove mail from main
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove mail from main
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* token and passwd update logic
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* token and passwd update logic
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* token and passwd update logic
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize mailing code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add comments for password reset flow
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add comments for password reset flow
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change struct members to private
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert back changes used for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert back changes used for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert back changes used for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding swagger docs for reset passw
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding swagger docs for reset passw
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix imports and some typos
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix imports and some typos
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding swagger docs for reset passw
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint test and update swagger for pass reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint test and update swagger for pass reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint test and update swagger for pass reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding test for endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding test for endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding test for endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding test for endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change token generation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change token generation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change token generation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize and change token gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize and change token gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize and change token gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint token and mail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error reporting
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix some comments and update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix some comments and update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix some comments and update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problmes due merge
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problmes due merge
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typos
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typos
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add trusted certificates
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add endpoint for password change of currently authenticated user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add env variable for conf reset endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add metadata to users
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default value for metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when metadata is not set dont save 'null' string
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change metadata type, add error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove extra char
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* few small fixes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix identityRes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add users metadata
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* password reset, sketching
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reset request endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding token endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding reset passw endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add logic for token verifying
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove mail from main
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert back changes used for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize endpoints, extract host for link from Referer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* addint test and update swagger for pass reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix some comments and update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add env variable for conf reset endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving some style comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor fixes due to bad merge
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problem with unsigned commits
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix problem with unsigned commits
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix call to users.New
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix call to users.New
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename file
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename to email.go
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* additional comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* additional comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email util
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email util
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email util
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email util
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove debug bin
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add driver conf for mail
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor email
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix failing tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add testify
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add token conf
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* configurable email template
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix missing var
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add env for email template file
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add env for email template file
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert to master
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove dev container
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fixes, typos, namings
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix typo
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolving comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return err from email New()
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change MF_TOKEN_RESET_ENDPOINT
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add and remove env vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate password logic into two methods Change and Reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove blank line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* dont use camel case
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize email template for passw reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize email template for passw reset
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-10-22 14:53:14 +02:00