The redirect will try to open on the device in the default browser, due to the http(s) protocol being used and recognized.
For the app you'll might be needing a custom url scheme, adding this takes some tinkering with the phonegap package, an additional plugin and some configuration. This all to allow the redirect to be send to yourapp://path/SSO....
See here for more information on the custom url scheme.