Pascal Fischer
e869882da1
fix merge
2023-03-30 16:14:51 +02:00
Pascal Fischer
6c8bb60632
fix merge
2023-03-30 16:06:46 +02:00
Pascal Fischer
4d7029d80c
Merge branch 'main' into feature/add_pat_middleware
...
# Conflicts:
# management/server/grpcserver.go
# management/server/http/middleware/jwt.go
2023-03-30 16:06:21 +02:00
pascal-fischer
909f305728
Merge pull request #766 from netbirdio/feature/add_rest_endpoints_for_pat
...
Feature/add rest endpoints for pat
2023-03-30 15:55:48 +02:00
Pascal Fischer
5e2f66d591
fix codacy
2023-03-30 15:23:24 +02:00
Pascal Fischer
a7519859bc
fix test
2023-03-30 14:15:44 +02:00
Pascal Fischer
9b000b89d5
Merge branch 'feature/add_rest_endpoints_for_pat' into feature/add_pat_middleware
...
# Conflicts:
# management/server/mock_server/account_mock.go
2023-03-30 14:02:58 +02:00
Pascal Fischer
5c1acdbf2f
move validation into account manager + func for get requests
2023-03-30 13:58:44 +02:00
Pascal Fischer
db3a9f0aa2
refactor jwt token validation and add PAT to middleware auth
2023-03-30 10:54:09 +02:00
Pascal Fischer
ecc4f8a10d
fix Pat handler test
2023-03-29 19:13:01 +02:00
Pascal Fischer
03abdfa112
return empty object on all handlers instead of empty string
2023-03-29 18:46:40 +02:00
Pascal Fischer
9746a7f61a
remove debug logs
2023-03-29 18:27:01 +02:00
Pascal Fischer
4ec6d5d20b
remove debug logs
2023-03-29 18:23:10 +02:00
Pascal Fischer
3bab745142
last_used can be nil
2023-03-29 17:46:09 +02:00
Pascal Fischer
0ca3d27a80
update account mock
2023-03-29 15:25:44 +02:00
Pascal Fischer
c5942e6b33
store hashed token base64 encoded
2023-03-29 15:21:53 +02:00
Pascal Fischer
726ffb5740
add comments for exported functions
2023-03-29 15:06:54 +02:00
Maycon Santos
dfb7960cd4
Fix pre-shared key query name for android configuration ( #773 )
2023-03-29 10:41:14 +02:00
Zoltan Papp
ab0cf1b8aa
Fix slice bounds out of range in msg decryption ( #768 )
2023-03-29 10:40:31 +02:00
Zoltan Papp
8ebd6ce963
Add OnDisconnecting service callback ( #767 )
...
Add OnDisconnecting service callback for mobile
2023-03-29 10:39:54 +02:00
Pascal Fischer
42ba0765c8
fix linter
2023-03-28 14:54:06 +02:00
Pascal Fischer
514403db37
use object instead of plain token for create response + handler test
2023-03-28 14:47:15 +02:00
Zoltan Papp
488d338ce8
Refactor the authentication part of mobile exports ( #759 )
...
Refactor the auth code into async calls for mobile framework
---------
Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
2023-03-28 09:57:23 +02:00
Pascal Fischer
6a75ec4ab7
fix http error codes
2023-03-27 17:42:05 +02:00
Pascal Fischer
b66e984ddd
set limits for expiration
2023-03-27 17:28:24 +02:00
Pascal Fischer
c65a934107
refactor to use name instead of description
2023-03-27 16:28:49 +02:00
Zoltan Papp
55ebf93815
Fix nil pointer exception when create config ( #765 )
...
The config stored in a wrong variable when has been generated a
new config
2023-03-27 15:37:58 +02:00
Pascal Fischer
9e74f30d2f
fix delete token parameter lookup
2023-03-27 15:19:19 +02:00
Zoltan Papp
71d24e59e6
Add fqdn and address for notification listener ( #757 )
...
Extend the status notification listeners with FQDN and address
changes. It is required for mobile services.
2023-03-24 18:51:35 +01:00
Zoltan Papp
992cfe64e1
Add ipv6 test for stdnet pkg ( #761 )
2023-03-24 10:46:40 +01:00
Zoltan Papp
d1703479ff
Add custom ice stdnet implementation ( #754 )
...
On Android, because of the hard SELinux policies can not list the
interfaces of the ICE package. Without it can not generate a host type
candidate. In this pull request, the list of interfaces comes via the Java
interface.
2023-03-24 08:40:39 +01:00
Maycon Santos
a27fe4326c
Add JWT middleware validation failure log ( #760 )
...
We will log the middleware log now, but in the next
releases we should provide a generic error that can be
parsed by the dashboard.
2023-03-23 18:26:41 +01:00
Misha Bragin
e6292e3124
Disable peer expiration of peers added with setup keys ( #758 )
2023-03-23 17:47:53 +01:00
Maycon Santos
628b497e81
Adjustments for the change server flow ( #756 )
...
Check SSO support by calling the internal.GetDeviceAuthorizationFlowInfo
Rename LoginSaveConfigIfSSOSupported to SaveConfigIfSSOSupported
Receive device name as input for setup-key login
have a default android name when no context value is provided
log non parsed errors from management registration calls
2023-03-23 16:35:06 +01:00
Bethuel
8f66dea11c
Add Keycloak Idp Manager ( #746 )
...
Added intergration with keycloak user API.
2023-03-23 14:54:31 +01:00
Pascal Fischer
de8608f99f
add rest endpoints and update openapi doc
2023-03-21 16:02:19 +01:00
pascal-fischer
9c5adfea2b
Merge pull request #745 from netbirdio/feature/pat_persistence
...
PAT persistence
2023-03-21 14:38:24 +01:00
Pascal Fischer
8e4710763e
use single line return for SaveAccount
2023-03-21 14:02:34 +01:00
Pascal Fischer
82af60838e
use "ok" convention for check variables throughout files_store
2023-03-21 14:00:59 +01:00
Pascal Fischer
311b67fe5a
change error messages
2023-03-21 13:56:31 +01:00
Pascal Fischer
94d39ab48c
improve style for tests
2023-03-21 13:34:48 +01:00
Pascal Fischer
41a47be379
add function comments, implement account mock functions and added error handling in tests
2023-03-20 16:38:17 +01:00
Pascal Fischer
e30def175b
switch PATs to map and add deletion
2023-03-20 16:14:55 +01:00
Pascal Fischer
e1ef091d45
remove unnecessary string conversion
2023-03-20 12:08:01 +01:00
pascal-fischer
511ba6d51f
Delete pat_handler.go
2023-03-20 11:47:54 +01:00
Pascal Fischer
b852198f67
codacy and lint hints
2023-03-20 11:44:12 +01:00
Zoltan Papp
891ba277b1
Mobile ( #735 )
...
Initial modification to support mobile client
Export necessary interfaces for Android framework
2023-03-17 10:37:27 +01:00
Zoltan Papp
747797271e
Fix connstate indication ( #732 )
...
Fix the status indication in the client service. The status of the
management server and the signal server was incorrect if the network
connection was broken. Basically the status update was not used by
the management and signal library.
2023-03-16 17:22:36 +01:00
Pascal Fischer
628a201e31
fix PAT array split
2023-03-16 16:59:32 +01:00
Maycon Santos
731d3ae464
Exchange proxy mode via signal ( #727 )
...
Before defining if we will use direct or proxy connection we will exchange a
message with the other peer if the modes match we keep the decision
from the shouldUseProxy function otherwise we skip using direct connection.
Added a feature support message to the signal protocol
2023-03-16 16:46:17 +01:00