Aryan Godara
e6e9d22133
MF-1670 - Improve error handling in SDK ( #1674 )
...
* initial commit
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove unused variables.
Signed-off-by: aryan <aryangodara03@gmail.com>
* removed temporarily created file.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix failing CI
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix thing_test failing cases.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove dead code, debug statements, and add comments.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Extract errors to separate file.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Updated things/api/http tests
Signed-off-by: aryan <aryangodara03@gmail.com>
* Created custom SDK error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Changed to using CheckError. All tests passing.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Replace error interface with errors.SDKError interface.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Fix failing CI.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused sdk errors.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Change SDKError to error in internal function of sdk package.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove encodeError. All tests working.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Rename sdkerr vars, convert common strings to constants.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Change checkerror to take error instead of string.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused errors, and removed errfailedwhitelist wrap.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Removed unused errors, and remove errors.go since it only had a repeated error from errors package
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove unused errors.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Update sdk_error.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Used function to reduce code for sending and receiving requests.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Added function sendrequestandgetheadersorerror.
Signed-off-by: aryan <aryangodara03@gmail.com>
* sdk_error updated.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Updated function names to processRequest.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Made errors internal, fixed typo in http.
Signed-off-by: aryan <aryangodara03@gmail.com>
* Remove empty line.
Signed-off-by: aryan <aryangodara03@gmail.com>
* merged proceessBody and processHeaders functions in sdk.
Signed-off-by: aryan <aryangodara03@gmail.com>
* remove sendThingRequest function.
Signed-off-by: aryan <aryangodara03@gmail.com>
* changed processRequest signature
Signed-off-by: aryan <aryangodara03@gmail.com>
* changed processRequest signature, changed error names.
Signed-off-by: aryan <aryangodara03@gmail.com>
Signed-off-by: aryan <aryangodara03@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-12-15 16:24:19 +01:00
Dušan Borovčanin
a48fb944c6
MF-1667 - Postgres lib update ( #1680 )
...
* Replace SQL lib in Things and Users
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Bootstrap DB lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename pqErr to pgErr
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Auth db lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update DB lib in consumers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update DB lib for Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Certs DB lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove "lib/pq" from dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update vendor
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Go version for base image in Dockerfile
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove unused Provision Dockerfile
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move error codes to init.go files
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add missing comment
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use Error Codes lib
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Go version in CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update mod file
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-12-13 15:34:01 +01:00
Dušan Borovčanin
6c59184d3f
NOISSUE - Fix CI script ( #1613 )
...
* Fix CI script
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix linter errors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add timeout to linter
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2022-06-09 21:57:37 +02:00
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
Manuel Imperiale
9e0947a355
MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz ( #1538 )
...
* MF-1261 - Use StatusUnauthorized for authn and StatusForbidden for authz
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* ErrExternalKey typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename ErrUnauthorizedAcces -> ErrAuthentication
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix bootstrap error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status code in openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add errors cases
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix status codes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add gRPC stutus code
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tests description
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi and encodeError
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix grpc message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test descriptions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert sdk error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-02-01 17:33:23 +01:00
Manuel Imperiale
6ad654d7cb
MF-1263 - Move repeating errors to the separate package ( #1540 )
...
* MF-1263 - Mv duplicated errors to pkg/errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert test build flags
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix merge
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix comment
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2022-01-27 17:03:57 +01:00
Manuel Imperiale
42dd813521
MF-1308 - Use IETF Health Check standard ( #1541 )
...
* MF-1308 - Use IETF Health Check standard
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add nginx health endpoint
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm github.com/nelkinda dependency
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check error
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace Version by Health in the CLI and SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use new build flag go:build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert wrong renaming
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* sdk health test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add /health endpoint to openapi doc
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use const for description message
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and build time during build
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Time format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add version and commit using git and build args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add comments
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add missing api properties
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix api
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use ./schemas/HealthInfo.yml as
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix example
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use content type application/health+json
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Set Makefile variables only if empty
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2022-01-24 21:18:53 +01:00
Burak Sekili
b78928c998
NOISSUE - Listing Policies ( #1498 )
...
* allow admin to fetch all things
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* enable users to fetch their own things via owner field in db
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listpolicies RPC
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* add listPolicies gRPC methods for client and server, and update keto initialization
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update fetching things method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove log
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update retrieving policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* fix linter error
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* update mock
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* remove checking subject set while parsing subject sets
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* move subject declaration to constant value
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-11-19 14:32:38 +01:00
Dušan Borovčanin
27d4646db4
MF-1443 - Add policies ( #1482 )
...
* MF-1443 - add policies
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* fix users create
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add Policies for sharing a Thing (#1463 )
* MF-1454 - Add policies for sharing a Thing
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a test case for sharing thing and update mock of AddPolicy
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update ShareThing parameter naming
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Policy Removal (#1466 )
* Add DeletePolicy gRPC endpoint in auth package
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update default admin creation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add policy addition endpoint (#1479 )
* NOISSUE - Add policy addition endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update name of the method
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
remove build tag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* NOISSUE - Add tests for AddPolicies (#1480 )
* NOISSUE - Add tests for adding policy and update authz check
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add more tests and update request body validation
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update test case structure and utilize mock prefix for test ids
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* MF-1454 - Add initial policies for Group access control (#1467 )
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Resolve PR comments
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Author: Burak Sekili <buraksekili@gmail.com>
2021-10-27 00:38:28 +02:00
Dušan Borovčanin
94cba4aab2
Fix UpdateChannelHandler for Redis producer ( #1473 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-10-11 15:36:35 +02:00
Drasko DRASKOVIC
d73a5d53fe
MF 1413 - Use per-service URL in SDK ( #1444 )
...
* Use per-service URL in SDK
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Fix CLI
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix CLI messaging
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix message tests
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Simplify Bootstrap
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Update API doc and responses
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* fix failing certs, bootstrap tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* fix failing certs, bootstrap tests
Signed-off-by: mteodor <mirko.teodorovic@gmail.com>
* Fix tests and rename to auth service
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Clean the code
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Remove unnecessary Repository logs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Always return error in case of repo failure
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Cleanup SDK and CLI
Update tests, remove linter warnings, remove dead code.
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Clean the code
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Undo Bootstrap changes
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix tests
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix linter
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
Co-authored-by: mteodor <mirko.teodorovic@gmail.com>
Co-authored-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-08-11 16:58:10 +02:00
Burak Sekili
2cfff01979
MF-1389 - Add /disconnect endpoint in Things service ( #1433 )
...
* MF-1389 - Add /disconnect endpoint in Things service
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add db transaction in Postgres' Disconnect
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Reformat things mock and things http api
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update naming of /disconnect endpoint decoder
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update naming for /connect endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
Update naming based on new endpoint
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Update disconnect endpoint test case descriptions
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-07-10 00:59:12 +02:00
Ivan Milošević
cddfdf4038
NOISSUE - Use github action for showing OpenAPI spec with Swagger UI ( #1427 )
...
* init swaggerui action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove dep
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix filename
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add checkout master
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try diffrent action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path for search
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change path
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* put almost all openapi spec to one folder
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix pattern
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* try servers changing
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* test k8s
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove servers
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* use blokovi action
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* add cname
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Parameters ready for PR to upstream
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* Fix errors in Auth openapi spec
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* remove white line
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* fix link in README
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
* change docs and api links in readme files
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
2021-06-23 13:31:46 +02:00
Dušan Borovčanin
516c02bebe
MF-1378 - Update dependencies ( #1379 )
...
* Update dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix compose files and configs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Upgrade image versions
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update Postgres version
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update test dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix fkey error handling
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-05-20 20:53:56 +02: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
Darko Draskovic
7ba3fdb3bf
NOISSUE - Add IsChannelOwner grpc endpoint ( #1366 )
...
* Add CanAccessChannelByOwner grpc endpoint
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Rename grpc endpoint to IsChannelOwner
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add tests for IsChannelOwner grpc
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Bump protoc version
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Make proto
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2021-02-22 19:41:59 +01:00
Manuel Imperiale
7834cc48b3
MF-1362 - Sort Things and Channels connections by name ( #1363 )
...
* MF-1362 - Sort Things and Channels connections by name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add order and direction tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-02-17 16:21:40 +01:00
Mirko Teodorovic
39a649c1bb
MF-1342 - Use environment variables in docker-compose to use tagged version of image ( #1343 )
...
* add MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme file for MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme file for MF_RELEASE_TAG
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix explanation, space
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bad search/replace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bad search/replace
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve explanation for tag
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace snippet with link to code section
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* improve explanation for tag
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace snippet with link to code section
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove MF_RELEASE_TAG from service readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2021-02-02 16:26:02 +01:00
Jonathan Dreyer
73c175020e
MF-1344 - Fix links to API documentations #1345
...
Signed-off-by: Jonathan Dreyer <jonathan.dreyer@he-arc.ch>
2021-01-31 20:25:19 +01:00
Manuel Imperiale
0631900d5c
MF-1276 - Fix openapi IDs and Keys format ( #1338 )
...
* MF-1276 - Fix openapi IDs and Keys format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix jwt
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix acces-by-key
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-27 11:42:55 +01:00
Manuel Imperiale
ac09815457
NOISSUE - Fix Auth typo ( #1319 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-01-11 10:00:13 +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
Darko Draskovic
9864b27271
NOISSUE - Add missing fields to openapi specs and enclose http codes in single quotes ( #1302 )
...
* Add req body to token req
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Shorten summaries and add/remove keys
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Add single quotes to html response codes
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-12-15 00:20:42 +01:00
Manuel Imperiale
3653e6b5d2
MF-1290 - Sort Things and Channels by name ( #1293 )
...
* MF-1290 - Sort Things and Channels by name
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add sort HTTP parameter and use PageMetadata to pass filters
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix channels conn list
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix logs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Replace sort naming by order
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add order in responses
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve order tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve getNameQuery func
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix commits
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add name-asc and name-desc
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add dir query parameter
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix test messages and openapi.yml
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix openapi uuid format
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Check query parameters in endpoint layer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add asc endpoint tests
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename pageMeta into pageMetadata
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-08 21:30:47 +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
Dušan Borovčanin
f6b1ae735c
MF-1244 - Return UserID alongside with user Email in Identify response ( #1245 )
...
* Add both an ID and an Email to API key requests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Use return UserIdentity response
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace GetValue with GetEmail
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor Mainflux Key
Add `Subject` field and reorganize Key manipulation.
**Remove backward compatibility**
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix service test
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix DB tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix JWT tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Uncomment and fix API tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix SQL statements alignment
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Issue method docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Retrieve API and API docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-10-27 19:42:53 +01:00
Darko Draskovic
3c794d4a03
NOISSUE - Migrate swaggers to openapi 3 spec ( #1250 )
...
* Migrate authn swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate http swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate bootstrap swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Fix users spec parameters indentation
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor user svc errs to return input related errors
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate certs swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate provision swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate provision swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate readers swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Migrate twins swagger to openapi 3
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor and rename bootstrap swagger
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Rename certs, http, provision and readers swagger to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor and rename user swagger to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor twins swagger and rename to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Refactor things swagger and rename to openapi
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
* Cleanup whitespace
Signed-off-by: Darko Draskovic <darko.draskovic@gmail.com>
2020-10-09 15:25:09 +02:00
Manuel Imperiale
9334568ba2
MF-983 - Add HTTP query param to connections list endpoints to fetch disconnected Things or Channels ( #1217 )
...
* MF-983 - Add HTTP query param to connections list endpoints to fetch non connected Things or Channels
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typos and add Swagger
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Update SDK and CLI
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Simplify queries
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix tabulation
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>
2020-07-26 22:47:15 +02:00
Mirko Teodorovic
b91024465c
MF-1179 - Add a certificate service and certs endpoint to SDK ( #1188 )
...
* adding certificate issuing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding cert endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update envs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update envs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move certs creation to sdk
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move certs creation to sdk
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move certs creation to sdk
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix env vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update sdk
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add volumes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix merge config for int
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cert test, change receiver to pointer
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix var naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* correct error naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding certs service
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change func receiever
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default cert issue method
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add config
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some testing code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cert issue
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add vault api client
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* additional endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add swagger for certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove certs from provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* clean provision from certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add list certificates endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add vault api in vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add revoke, fix bugs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix sdk for certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes, add env, doc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes, add env, doc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor changes, add env, doc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove CA for signing from provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add docker file for certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix mock sdk
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix RevokeCert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam ENV
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove tests temporarily
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renam vars
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cli for issue cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cli for issue cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cli for issue cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cli for issue cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove not needed envs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors, add cli
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter errors, add cli, var rename
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix reviews, add viewcert, fix view all certs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove view cert, as it will be retrieved from PKI
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default env val
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor, make wrapper lib for vault
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor, make wrapper lib for vault
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor, make wrapper lib for vault
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix revoking
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor, make wrapper lib for vault
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused field
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor pki
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor pki
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor pki, update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* refactor pki
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor fix
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove methods, use fields
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments and package desc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments and package desc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-07-21 12:53:21 +02:00
Alexander Obukhov
ecff066421
NOISSUE - Fix some typos ( #1212 )
...
Signed-off-by: Alexander Obukhov <dev@sprql.space>
2020-06-29 20:48:14 +02:00
Dušan Borovčanin
8d33285489
NOISSUE - Remove unknown Bootstrap requests ( #1210 )
...
* Remove unknown Bootstrap requests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update docs
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix migrations
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-06-26 13:24:56 +02:00
Mirko Teodorovic
381a15a695
MF-1025 - timeout env in sec, use parseduration ( #1206 )
...
* timeout env in sec, use parsduration
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* timeout env in sec, use parsduration
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename var
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-06-08 18:17:16 +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
Dušan Borovčanin
d7670e7adb
NOISSUE - Update dependencies ( #1176 )
...
* Update dependencies
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix mProxy version
Signed-off-by: dusanb <borovcanindusan1@gmail.com.com>
Co-authored-by: dusanb <borovcanindusan1@gmail.com.com>
2020-05-14 19:09:55 +02:00
Manuel Imperiale
f872546925
NOISSUE - Fix bootstrap SDK args naming ( #1151 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-29 20:05:08 +02:00
Ivan Milošević
eb9092494e
MF-1128 - Add golangci-linter to a CI script ( #1131 )
...
* Add golangci-linter to CI script
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add no-config flag
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* disable staticcheck
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* disable all except errcheck
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add more linters
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* add verbose flag for debug
decrease concurrency to 1
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove errcheck and verbose flag
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* enable just golint
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* fix lint errors
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2020-04-21 17:05:19 +02:00
Manuel Imperiale
f982b8ccc6
NOISSUE - Use HTTP Status in SDK error messages ( #1119 )
...
* NOISSUE - Use HTTP Status in SDK error messages
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add helper function to create errors
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fyx Typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert ErrNotFound
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm InvalidArgs and NotFoundound errors from SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-16 14:45:28 +02:00
Manuel Imperiale
7d839b7b61
NOISSUE - Fix bootstrap token naming and interfaces named args ( #1117 )
...
* NOISSUE - Fix bootstrap token naming and interfaces named args
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix CI bot
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use owner for repository layer
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-16 12:32:21 +02:00
Manuel Imperiale
b8bd011f9d
NOISSUE - Update coding style in Things service ( #1116 )
...
* NOISSUE - Update coding style in Things service
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix things.Page
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-15 15:15:30 +02:00
Alexander Obukhov
fbbf2c07a5
NOISSUE - Remove defers from TestMain ( #1111 )
...
Defers will not be run when using os.Exit (https://github.com/golang/go/issues/34129 )
Signed-off-by: Alexander Obukhov <dev@sprql.space>
2020-04-14 14:47:34 +02:00
Manuel Imperiale
6c39c85cc8
MF-1096 - Fix AuthN and Things Auth ENVARS ( #1066 )
...
* NOISSUE - Fix AuthN and Things Auth ENVARS
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add DB envars to env.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix envars
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add DefLogLLevelError
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix DB names
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix DB names
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix DB names and HTTP ports
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix .env
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert writers DB names
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm unused Twins envars
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 typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Remove definitions from env.go
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert HTTP gRPC ports
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use default NATS URL as string
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Revert default ports
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cassandra ENVARS
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix cassandra reader ENVARS
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers and writers envars
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix readers and writers .env
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-07 12:02:17 +02:00
Manuel Imperiale
1d78233fe6
MF-1090 - Use named Interfaces args ( #1097 )
...
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-04-05 13:15:47 +02:00
Ivan Milošević
51ec256664
NOISSUE - Implement errors package in bootstrap service ( #1093 )
...
* implement errors in bootstrap service
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* remove dead code
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* change errors messages
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* edit more errors messages
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2020-04-01 15:54:26 +02:00
Manuel Imperiale
9e2bb4933a
NOISSUE - Fix connect CLI command and remove ConnectThing func from SDK ( #1051 )
...
* NOISSUE - Fix connect CLI command and remove ConnectThing func from SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm ConnectThing from bootstrap
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-03-03 10:58:30 +01:00
Nikola Marčetić
42b3682352
MF-415 - Merge mProxy support ( #1045 )
...
* NOISSUE - Add mProxy support (#1017 )
* Add mproxy
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Fix docker and add EMQ compose
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Fix EMQX name
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Add nats, auth and es
Signed-off-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
* Removed unucessary vendoring
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Update vendoring
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
* Fix mproxy interface implementation
Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
NOISSUE - Aligned Event interface method signatures with new spec (#1025 )
* Aligned Event interface method signatures with new spec
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
* Updated deps
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
NOISSUE - Update mproxy dependency (#1038 )
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Update Vendor with new mProxy (#1043 )
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Twins merge conflict reverted
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Twins merge conflict reverted
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Twins fixed nats import
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Update deps
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
* Resolved GolangCI remarks
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Resolved GolangCI remarks
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
Resolved GolangCI remarks
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
* Fixed Event interface Unsubscribe() typo
Signed-off-by: Nikola Marcetic <n.marcetic86@gmail.com>
* Update vendors
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Upgrade CI script
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
Co-authored-by: Drasko DRASKOVIC <drasko.draskovic@gmail.com>
Co-authored-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2020-02-26 17:14:16 +01:00
Dušan Borovčanin
9f37927dec
MF-932 - User API keys ( #941 )
...
* Add inital Auth implementation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract IssuedAt on transport layer
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add token type
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Auth service URL in Things service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add User Keys revocation check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unused tracing methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix Key retrival and parsing
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unused code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix compose files
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Simplify tests.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos and remove useless comments
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename Auth to Authn
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename database.go to tracin.go
A new name (`tracing.go`) describes better the purpose of the file.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Fix typo.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Increase test coverage
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove token from Users service
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix identify login keys
Rename token parsing method.
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract tokenizer to interface
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove pointer time
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use pointer for expiration time in response
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use uppercase N
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove unnecessary email check
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Cleanup unused code and env vars
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Rename tokenizer field
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Use slices and named fields in test cases
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update AuthN keys naming
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove package-lock.json changes
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove Secret from issuing request
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-12-16 16:22:09 +01:00