Git Product home page Git Product logo

Comments (1)

bitbound avatar bitbound commented on August 24, 2024

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): [email protected]. 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"
	}
}

from remotely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.