#1 2020-10-20 12:34:45

konsul41
Member
Registered: 2020-05-21
Posts: 24

Login from Android

I am trying to log into the mormot server
at
ServerDB.AuthenticationRegister (TSQLRestServerAuthenticationDefault);

is modeled on
https://github.com/synopse/mORMot/blob/ … tcode.java

but I can't login

Android (Java)
...
    private String passwordHashHexa = "synopse";
    private String user = "User";
...
    if (token == "")
                return false;
    //ModelRoot/auth?UserName=...
...
   //the problem is still how to encrypt the password?

    URL url = new URL(serviceUrl  +
                              "/" + this.root +
                              "/auth?UserName="+this.user+
                              "&PassWord="+SHA256(root + token + aNonce + user +passwordHashHexa)+
                              "&ClientNonce="+aNonce);


Since the code that is on the forum and quoted by me, a lot has changed in Android and Google managed to break with Apache and Apache code flew from Android. Therefore, HttpUtils cannot be used.
Has anyone had this before?

Offline

Board footer

Powered by FluxBB