fixes missing full authentication for device_authorization endpoint
@@ -35,8 +35,9 @@ struct oidc_device_code* initDeviceFlow(struct oidc_account* account) {
return NULL;
}
syslog(LOG_AUTHPRIV | LOG_DEBUG, "Data to send: %s", data);
- char* res = sendPostDataWithoutBasicAuth(device_authorization_endpoint, data,
- account_getCertPath(*account));
+ char* res = sendPostDataWithBasicAuth(
+ device_authorization_endpoint, data, account_getCertPath(*account),
+ account_getClientId(*account), account_getClientSecret(*account));
secFree(data);
if (res == NULL) {
return NULL;
