* NOISSUE - Add opc-ua type handling and unsubscription
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Create const for max childrens
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* 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>
* NOISSUE - Use opcua server timestamp in opcua-adapter messages
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rename pubsub -> subscribe
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add Transformer tests
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix readers and writers
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix README typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Tidy vendor
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove link field from docs
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* NOISSUE - Remove messages limit in influxdb-reader
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm too large limit test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Enable multi OPC-UA Subscriptions
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* NOISSUE - Fix opcua-adapter events decode
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use a config file to subscribe to multiple nodes
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add subscription config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Use Mainflux errors package
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add bulk connect to CLI and SDK
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add test for bulk connect
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Update docs
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add file example
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Add JSON example to CLI docs
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Change some value datatypes back
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Use constants for file extensions
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* 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>
* NOISSUE - Fix Update User
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated test
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typo
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Change connect endpoint to use bulk connections
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Add documentation for bulk connect
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Update service and postgres for multiple channels
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Update bulk connect endpoint
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Fix missed test
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Improve test code coverage
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Change methods to use shared data type
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Fix provisioning example
Signed-off-by: Nick Neisen <nwneisen@gmail.com>
* Change depreciation messages to specify v1.0.0
Signed-off-by: nwneisen <nwneisen@gmail.com>
* Switch singluar log to plural
Signed-off-by: nwneisen <nwneisen@gmail.com>