MarkusR Well-Known Member Licensed User Longtime User Aug 25, 2018 #1 I try to use this solution with ssl: [Server] Data Collection Solution - Device, Desktop and Web reports https://www.b4x.com/android/forum/t...device-desktop-and-web-reports.37254/#content In the DataCollectionDesktop App i will use Username & Password (https://) B4X: Dim j As HttpJob j.Username = "..." j.Password = "..." My Question: At DataCollectionServer its possible to Check this User/Password via Filter Class? I initialize Server with this: B4X: srvr.Initialize("srvr") Dim ssl As SslConfiguration ssl.Initialize ssl.SetKeyStorePath(File.DirApp, "server.keystore") ssl.KeyStorePassword = "..." 'ssl.KeyManagerPassword = "..." srvr.SetSslConfiguration(ssl, 443) srvr.AddFilter("/*", "HttpsFilter", False) srvr.AddDoSFilter("/*",Null) ' Log(File.DirApp) srvr.StaticFilesFolder = File.Combine(File.DirApp, "www") srvr.AddHandler("/hello", "HelloPage", False) srvr.Start StartMessageLoop Last edited: Aug 25, 2018
I try to use this solution with ssl: [Server] Data Collection Solution - Device, Desktop and Web reports https://www.b4x.com/android/forum/t...device-desktop-and-web-reports.37254/#content In the DataCollectionDesktop App i will use Username & Password (https://) B4X: Dim j As HttpJob j.Username = "..." j.Password = "..." My Question: At DataCollectionServer its possible to Check this User/Password via Filter Class? I initialize Server with this: B4X: srvr.Initialize("srvr") Dim ssl As SslConfiguration ssl.Initialize ssl.SetKeyStorePath(File.DirApp, "server.keystore") ssl.KeyStorePassword = "..." 'ssl.KeyManagerPassword = "..." srvr.SetSslConfiguration(ssl, 443) srvr.AddFilter("/*", "HttpsFilter", False) srvr.AddDoSFilter("/*",Null) ' Log(File.DirApp) srvr.StaticFilesFolder = File.Combine(File.DirApp, "www") srvr.AddHandler("/hello", "HelloPage", False) srvr.Start StartMessageLoop
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2018 #2 Note that it is an old example. If I remember correctly it is not based on B4XSerializator. I recommend you to switch to B4XSerializator. https://www.b4x.com/android/forum/threads/jserver-authentication.79720/#content Upvote 0
Note that it is an old example. If I remember correctly it is not based on B4XSerializator. I recommend you to switch to B4XSerializator. https://www.b4x.com/android/forum/threads/jserver-authentication.79720/#content
MarkusR Well-Known Member Licensed User Longtime User Aug 26, 2018 #3 Erel said: Note that it is an old example. If I remember correctly it is not based on B4XSerializator. I recommend you to switch to B4XSerializator. Click to expand... exact that example code from you with BasicAuthenticationFilter i looked for, thanks. You are right, i need B4XSerializator. i approach my goal. Last edited: Aug 26, 2018 Upvote 0
Erel said: Note that it is an old example. If I remember correctly it is not based on B4XSerializator. I recommend you to switch to B4XSerializator. Click to expand... exact that example code from you with BasicAuthenticationFilter i looked for, thanks. You are right, i need B4XSerializator. i approach my goal.