Addon to use torii authentication in Cordova using SafariViewController.
npm install torii-cordovaAddon to use torii authentication in Cordova using SafariViewController
iOS component
The addon is based on a method described in the article here:
Stop using InAppBrowser for your Cordova/Phonegap oAuth flow
It depends on Custom URL scheme and SafariViewController cordova plugins
ember install torii-cordova
mycoolapp://cordova-popupjs
// config/environment.js
module.exports = function(environment) {
var ENV = {
torii: {
sessionServiceName: 'session',
providers: {
'': {
remoteServiceName: 'cordova-popup',
redirectUri: 'http://localhost:4000/fw' // static html with JS
// for custom url scheme
// redirect
}
}
}
};
}
`
1. You need a static web page hosted on your server in order to do redirect to your cordova app using custom url scheme.
`html
``Please read Stop using InAppBrowser for your Cordova/Phonegap oAuth flow article for details.