Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7522 Переглядів

We want to use OAuth (for example Google login) with our installation. This adds a button to the login screen and works just fine.

However, our users cannot use the Odoo app for this process, because the mobile app has a separate login screen where they enter:

  • [Server]

  • [Login]

  • [Password]

How can we make the app users also use the OAuth flow?

Аватар
Відмінити
Найкраща відповідь

Recently we were working in mobile app which is integrated with odoo.sh please implement following things in your project and it would help to solve your problem

1. add following libary inside app level gradle file.

implementation 'com.oogbox.api:odoo:1.0.4'

2. build your project

3. To authenticate the User please check below code.

OdooClient client = new OdooClient.Builder(context)

.setHost("https://www.example.com")

.setConnectListener(new OdooConnectListener() {

@Override

public void onConnected(OdooVersion version) {

client.authenticate("user","pass", "db", loginCallback);

}

}).build();


AuthenticateListener loginCallback = new AuthenticateListener() {

@Override

public void onLoginSuccess(OdooUser user) {

}

@Override

public void onLoginFail(AuthError error) {

}

};


If you want explore more you can check from given library - https://github.com/oogbox/odoo-mobile-api

Regards,




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 25
733
2
січ. 25
8443
2
черв. 23
5320
5
квіт. 23
10494
2
груд. 20
2489