View on GitHub

sensibill-android-documentation

Authentication

There are two ways to authenticate Sensibill users with the SDK: Token Authentication & Username/Password Authentication.

Token Authentication

Token Authentication happens when OAuth authentication has already occurred with Sensibill Backend and a user token has been retrieved. This is likely the case if there is an integration server that authenticates users and passes token back to mobile application.

*For more detailed instructions on Token Authentication: Token Authentication Instructions

Username/Password Authentication (on device authentication)

In the case where there is no integration server to perform authentication on behalf of user, OAuth authentication must done on device. To perform OAuth authentication, client information is required: client-key, client-secret, redirect url. To make OAuth authentication simpler, Sensibill OAuthSettings + SensibillAuth class can be used. To use these classes, the following additional dependency is required:

*For more detailed instructions on Password/Username Authentication: Username + Password Instructions