Faulty basic HTTP authentication in web apps on iOS 7?

I use basic authentication for a simple application, but it stopped working in web application mode on iOS 7. It works in Safari, it worked on iOS 6 both in Safari and as a standalone web application, but after switching to iOS 7 only a white screen is displayed.

Has anyone experienced the same problem?

+7
ios web-applications mobile-safari ios7 iphone-standalone-web-app
source share
4 answers

I found that by removing windows auth from iis and leaving only the base with the scope set for the domain, I solved this problem for me.

Give it a try.

+1
source

I think this may be due to the dialogue issue described here here .

Standard dialogs do not work at all, such as a warning, confirmation, or prompt.

The login prompt that is shown to authenticate the user is probably blocked (not working or not showing), so the web application does not go through the authentication step.

I suppose Apple will have to fix this bug in a future version.

Edit: after upgrading to basic authentication, iOS 7.0.3 suddenly started working again in web application mode on the main screen. You will be prompted for input, and everything will work as expected.

+1
source

It worked for me.

+ (void) setBasicAuth { NSURLCredentialStorage* store = [NSURLCredentialStorage sharedCredentialStorage]; NSURLCredential* creds = [NSURLCredential credentialWithUser:@"user" password:@"pass" persistence:NSURLCredentialPersistenceForSession]; NSURLProtectionSpace* protectionSpace = [[NSURLProtectionSpace alloc] initWithHost:@"your-host" port:80 protocol:@"http" realm:@"Your Realm" authenticationMethod:NSURLAuthenticationMethodDefault]; [store setCredential:creds forProtectionSpace:protectionSpace]; } 
+1
source

I have the same problem. It works when setting the username and password in the URL of your web application and

0
source

All Articles