question

mp avatar image
mp asked Miguel Deactivated commented

Auto Logging in Clover Web.

Hello,

I am developing clover application in android and open Clover website that is already done and open in android in web view. But they ask user name and password every time to open web in clover mini,so their is any solution to auto logging in clover to directly open website in webview without logging(Auto Logging).

Thank you

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Miguel avatar image Miguel commented ·

What Clover site are you trying to launch? I'm not sure I understand why'd you want to launch a Clover site from within an app.

0 Likes 0 ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered

Try getting an auth token from the clover APK:

 CloverAuth.AuthResult authResult = CloverAuth.authenticate(getApplicationContext(), account);
                if (authResult.authToken != null && authResult.baseUrl != null) {
                    //From here you'll have the authToken in: authResult.authToken
                   String token = authResult.authToken;
                }

Then open your WebView somehow including that token.

Haven't tried this, it's just an idea.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community