INFO[2020-05-27T17:53:56+02:00] Starting device-agent with config:
{APIServer:http://10.255.240.1 Interface:utun69 ConfigDir:/Users/hrv/Library/Application Support/naisdevice BinaryDir:/usr/local/bin BootstrapToken: WireGuardBinary: WireGuardGoBinary: PrivateKeyPath: WireGuardConfigPath: BootstrapConfigPath: LogLevel:info OAuth2Config:{ClientID:8086d321-c6d3-4398-87da-0d54e3d93967 ClientSecret: Endpoint:{AuthURL:https://login.microsoftonline.com/62366534-1ec3-4962-8869-9b5535279d0b/oauth2/v2.0/authorize TokenURL:https://login.microsoftonline.com/62366534-1ec3-4962-8869-9b5535279d0b/oauth2/v2.0/token AuthStyle:0} RedirectURL:http://localhost:51800 Scopes:[openid 6e45010d-2637-4a40-b91d-d4cbb451fb57/.default offline_access]} Platform: BootstrapAPI:https://bootstrap.device.nais.io}
INFO[2020-05-27T17:53:56+02:00] If the browser didn't open, visit this url to sign in: https://login.microsoftonline.com/62366534-1ec3-4962-8869-9b5535279d0b/oauth2/v2.0/authorize?access_type=offline&client_id=8086d321-c6d3-4398-87da-0d54e3d93967&code_challenge=xxx-sg6nXyE4SnuZ0&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A51800&response_type=code&scope=openid+6e45010d-2637-4a40-b91d-d4cbb451fb57%2F.default+offline_access&state=HrNmLh1i5iNSf9YB
Starting device-agent-helper, you might be prompted for password
Password:
INFO[2020-05-27T17:54:02+02:00] Starting device-agent-helper with config:
{Interface:utun69 BinaryDir: WireGuardBinary:/usr/local/bin/naisdevice-wg WireGuardGoBinary:/usr/local/bin/naisdevice-wireguard-go WireGuardConfigPath:/Users/hrv/Library/Application Support/naisdevice/wg0.conf LogLevel:info DeviceIP:10.255.240.9}
ERRO[2020-05-27T19:04:23+02:00] Unable to get gateway config: getting device config: Get http://10.255.240.1/devices/SERIAL/gateways: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_grant","error_description":"AADSTS70043: The refresh token has expired or is invalid due to sign-in frequency checks by conditional access. The token was issued on 2020-05-22T18:38:20.0528180Z and the maximum allowed lifetime for this request is 82800.\r\nTrace ID: 5d0a143c-3d3e-4872-8ac6-be1628421e00\r\nCorrelation ID: 39a0d8d8-368d-4237-ae96-9a8ddf1574f8\r\nTimestamp: 2020-05-27 17:04:23Z","error_codes":[70043],"timestamp":"2020-05-27 17:04:23Z","trace_id":"5d0a143c-3d3e-4872-8ac6-be1628421e00","correlation_id":"39a0d8d8-368d-4237-ae96-9a8ddf1574f8","suberror":"token_expired"}