Hello,
You may check this issue on GitHub, you could implement token authentication to achieve what you need.
https://github.com/neutrinolabs/xrdp/issues/1667
Add support for token authentication
https://github.com/neutrinolabs/xrdp/pull/1668
If the Answer is helpful, please click "Accept Answer" and upvote it.