Client authentication
It is your responsibility to perform user authentication by calling OneginiClient#UserClient#authenticateClient
whenever a Resource Gateway responds with a 401 unauthorized status code.
The DeviceClient#authenticateDevice
method performs client authentication. The Android SDK uses client credentials to request an access token object, which is used to perform anonymous resource calls. To call the authenticateDevice
method two arguments have to be passed:
String[]
scopes the client authentication is requested forOneginiDeviceAuthenticationHandler
interface implementation
Example code - authenticating a client