Android Question RDC - Secure access

h725

Active Member
Licensed User
Longtime User
Hello B4X community !

I would like to know how I can establish a connection to the RDC-Server with a
password request or something like that. At the moment, once a user has the
app (which stores the ip-adress and port) he can access the server. Is there
a way to influence the connection ?
First I thought of clientside password request OR serverside blacklist / whitelist
with the ids of the clients.
 

h725

Active Member
Licensed User
Longtime User
Could you give me a snippet or link how to do this (client id as a URL parameter and handling it)?
Kind regards
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
You need to make two updates:
1. Update DBRequestManager.SendJob and add the user id after the method parameter:
B4X:
j.PostBytes(link & "?method=" & Method & "&userid=" & Main.UserId , Data)

2. In RDCHandle:
B4X:
Dim method As String = req.GetParameter("method")
Dim userid As String = req.GetParameter("userid")
 
Upvote 0
Top