We use OneLogIn for SSO and also SalesForce. We would like to have a single auth service that will take care of authentication and authorization to all our apps.
Here is the suggested flow:
email/password form -> auth service -> onelogin reply yes or no -> salesforce reply with user id. JWT token is created with user id, stored in a DB and JWT is returned to the app. The app will store the JWT in the localStorage (or in case of cordova is some other storage) and sends it in the HTTP header to every other serivce.
BTW, I read conflicting article about localStorage as a place to store JWT:
Opinions, links and suggestions are all welcome!