git clone https://github.com/WaltzApp/waltz-SDK-example
The OAuth flow is based on this architecture.
Waltz implements an authentication system based on the OAuth 2 pattern as per the diagram above. The Waltz SDK handles the display of the login page so that it can intake the credentials as entered by the user, submit them to the Waltz Cloud services and then provide, to the calling mobile app, a token that was returned. To display the login page, consult the plateform specific documentation under its architecture folder (iOS or Android). In the returned token, the app will find information about the user that it can use. It will probably want to send this token to it’s cloud services so that:
- the token is confirmed as authentic
- so that the backend can know who is logged into that instance of the app
GET https://re.waltzlabs.com/mobile/v1/mobileapp/getSecret
This is the expected response: