You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure where you're seeing the line: requesterName = Context?.User?.Identity?.Name;
I don't see that within the SendScreenCastRequestToDevice method or anywhere else. Maybe you're looking at an older version?
With that said, the "requesterName" parameter is meant only for the name that someone types in at the remote control page. It isn't tied to an account and doesn't get populated for unattended remote control sessions.
For an unattended remote control session, you'll see the following the logs:
Remote control session requested. Connection ID: CJnXgB8J9F2HRqUvdTgF1w. User ID: b626b614-ad15-4e9a-b999-08a668465f31. Screen Caster ID: WNf4NNspVhiTBstWyFfN2g. Mode: Unattended. Login ID (if logged in): translucency@outlook.com. Rquester Name (if specified): . Requester IP Address: ::1
The login ID will always be populated for unattended sessions, which is the username used to sign into Remotely. For attended sessions, it will only be populated if they're logged in.
However, I did add the requesterName parameter as an option for the unattended session, in case you wanted to add it after an API login. For example, at the end of the PowerShell example on the readme, I can add a requesterName parameter at the end of the URL.
if ($Response.StatusCode -eq 200) {
$Response = Invoke-WebRequest -Uri "https://localhost:5001/api/RemoteControl/Maker" -WebSession $WebSession -Method Get -ContentType "application/json"
if ($Response.StatusCode -eq 200) {
Start-Process -FilePath "$($Response.Content)&requesterName=Jared"
}
}
Well, It does authenticate the request, but internally if you track the request you will find that in
public async Task SendScreenCastRequestToDevice(string screenCasterID, string requesterName, int remoteControlMode)
{
requesterName = Context?.User?.Identity?.Name;
you will find that requesterName is null, although the request was initially authenticated.
It works nicely with the post method of the API.
The text was updated successfully, but these errors were encountered: