Homescreen Web Application and AD Authentication - ios

I have an HTML5 website which has AD authentication. Inside this website, I have a webpage which I would like to be a "web app" on an iPad.
I have the cache.appcache file all ready and working fine in an environment where there is no AD authentication.
When I go to the page on the iPad, authenticate and then add to Home Screen, everything seems fine.
When I click on the homescreen shortcut, the page asks for authentication again. I need this to be an offline app - how can I achieve this? I want the user to have to authenticate to get the web app "installed" on the homescreen but after that don't want them to have to authenticate again.
Any ideas welcome!

Related

Link to Ionic page from external website

I'm integrating an Ionic app with a 3rd party web authentication framework. The framework requires that the user visit a web page to authenticate and then receive several authentication token cookies.
I plan to open a link to the external login page, have the user authenticate, and then be redirected back to the Ionic app.
I need a URL to the homepage of my app so that the login page can redirect the user back after logging in. How do I generate a a URL for a location in the Ionic app?
why not just use the in app browsers plugin so that the user never has to leave the app in the first place.
https://github.com/apache/cordova-plugin-inappbrowser
Our app has a blog and we use this
$scope.readMore = function (index) {
$scope.link = $scope.articles[index].WebLink;
window.open($scope.link, '_blank', 'transitionstyle=crossdissolve,toolbarposition=top');
};
by using the option _blank we can have the user open up a webpage inside the app not have to have the navigate away from the app in order to access a url, i also looks way better than a iframe.

OAUTH 2 not working on "standalone" HTML5 app vrs web app

I have a web app eg www.webapp.com that uses Google's OAUTH2 (gapi.authorize) (OAUTH2) to sign in users. It works from the desktop and mobile devices as long as I use the browser to navigate to the site.
PROBLEM: I can install it to the (eg "Add to Homescreen" on Android). But when I run it from the homescreen, the authentication/consent screen gets stuck on a blank page and a "connecting" message. My manifest.json file has display: standalone
I have to manually close the popup, and use the "Back" button on the phone to get back to the login screen. The response
token etc. are there as expected. Why is the popup screen not closing? How can it be forced to close without user intervention?

How to save my home page for offline support in UIWebView

I have an app that already develop in HTML.
We are rendering app in UIWebview using the server URL.
Everything working fine. But I want to cache the Login page for offline support.
So, If user kill the app and restart the device and open app in offline mode he will see only the blank page.
Is there any way to save the login page so that user will able to see the login page instead of blank page.

How do I prevent the facebook login page from taking over my home page app?

I have a iPad home page app that I'm trying to integrate a facebook like button. Everything works fine if the user is already logged in, but if the user is not logged in the facebook login page takes over my app page and after login does not return to my app. Is there a way to make facebook login using an iframe?
My app is a web app not a native IOS app. It is setup with a manifest file and the user adds it to their home page. Because the app can have different URLs and all we want to do is provide like functionality, registering the app is not available to me.
What I want to know is there a way for facebook to open the login page in an iframe like the like dialog when the user clicks the like button? Right now I'm using the social plugin for the like button, but if the user isn't logged in to facebook the login page replaces my web app. Is there a way to make the login page use an iframe?
Wrapping it in a <div> worked for me

iPhone Web App on Home Screen + Facebook Authenticate

Gurus of SO
I have a working web app which works well enough with Facebook Connect. But when I post the Web App to the Home Screen on iOS 4.3.4 & click on 'FB Login' in the app -> it triggers Safari to open up and I end up leaving the Home Screen view.
Is there anyway to login from the Home Screen app itself and not trigger Safari?
Thank you.
Tried target="_webapp", target="_blank", etc none of those worked for me.
This bit of javascript worked just fine for me:
<a href="#" onclick="window.open('<put your facebook login URL here>','_parent'); ...
It is doing this to verify the Facebook login session. Currently, you cannot avoid this since your web app must go to Facebook dialog anyway to have the user login if they haven't already.

Resources