Apple Captive Portal displaying "Success" instead of closing - javascript

I developed a login portal for a Wifi hotspot. When I connect to that hostpot, the CNA appears with no problem, and I can go through the entire process of login. However, when it comes to reach the "Success.html" page, the CNA doesn't close itself. The page is just display and the user can see "Success" on the screen.
The user is redirected to this page using JS (I tried both window.open and window.location.href commands).
Any clue on how I can make this page close? Is there a specific way to redirect the user to this "Success" page to make the CNA understand it should be closed?
Additional info: The login portal is under https. I don't know if it has anything to do with that...
Thanks a lot!
Nikkow.

Try to intercept the "success" page in a script, after choose the action to do !

If the captive portal is detected by the Captive Network Assistant.app (located in /System/Library/CoreServices/) then the user will hav to click the “Done” button to close the window. You might not be allowed to intercept that as it might be a security vulnerability. See if you can do what #Lord St. John suggests.

Related

How to navigate the user back to mobile app from browser with some data?

thank you in advance for having a look at my issue.
In our mobile app we are using browser google login to let the user sign in, so the url is like this
"BASE_URL/google?redirectUrl={DEEP_LINK_SCHEME}"
So I open this url using Linking.open(), it opens the user logs in then the backend developer has written a code to navigate the user back to the app with DEEP_LINK_SCHEME, but it doesnt work, instead it shows 404.
Did you face this issue ever before?
Hey there, thank you in advance for having a look at my issue.
In our mobile app we are using browser google login to let the user sign in, so the url is like this
"BASE_URL/google?redirectUrl={DEEP_LINK_SCHEME}"
So I open this url using Linking.open(), it opens the user logs in then the backend developer has written a code to navigate the user back to the app with DEEP_LINK_SCHEME, but it doesnt work, instead it shows 404.
Did you face this issue ever before?

Pop Up not redirecting after successful login into azure AD

I have implemented Azure AD with my web application. on clicking login window a pop up open with URL https://login.microsoftonline.com. it ask for Azure ad username and password, After successful login a code is return as parameter but pop up never route back to main page it just stays there.
Has anyone encountered this scenario?
This was working but stopped suddenly. Can there be a proxy issue or browser issue?
Many users have said that if you create a UserAgentApplication on the redirected page it will close the popup.
If you are using MSAL, you need to have the msal object instantiated in the page pointed to by the redirectUri, so that this object closes the popup.
You can also resolve this by using an SPFx extension on every page so the login popup is able to close. In the redirect URL (SPFx/AAD), you can specify the root site collection URL.
See related threads:
https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/174
https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/611
Angular Application stuck in an endless loop
I faced the same issue for SSO in Angular Project,
In my case, I created a wrong platform (i.e. Web).
Once I created a platform "Single-page application".
It worked fine for me.
I hope this might help someone.
Documentation URL for creating platform : https://learn.microsoft.com/en-us/azure/active-directory/develop/scenario-spa-app-registration
Documentation URL for angular integration : https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-angular-auth-code

Script to automatically submit form in any browser

Note: I could not think words for this question to search in Google. That's why asking my question. Please bear with me.
I have internet subscription of xyz company and it's login based connection. But what happens is that sometimes login screen reappears and is asking for password. I have already stored user name and password in web page but I have to click on login button to relogin again.
Can I have any script written for this login page that whenever internet connection goes and asks for relogin again, script automatically submit form and get connected with internet?
You're looking for content scripts. There is no cross-browser way to inject code into a web page, but each major browser has a well documented way to do it:
Firefox
Chrome
Internet Explorer
Technically you could also write a script that sniffs HTTP requests using a tool like Wireshark and posts form data whenever it detects the page is displayed, but that doesn't seem like a great solution.

Issue with HTML5 Notification and permission

I'm trying to use the new HTML notification API...
I'm still stuck in the request authorization phase;
when user click on a button it's executed the function:
// this is all inside a click handler
var fn = console.info;
window.Notification.requestPermission(function(grant) {
fn(grant);
});
When i tryed this for the first time in chrome, a chrome's message came out asking me if i want to concede the Notification grant to my localhost web site... I said no (just to test even this case). Then I tried again, but that message from chrome never came out.
My question:
If the user change opinion about notification, how could enable notification for a website?
Maybe do I've to change something in the chrome settings?
Thanks in advance
You can manage and re-allow notifications in Chrome by going to Settings -> Privacy -> Content Settings -> Scroll down to Notifications - here you can manage which sites are allowed to show notifications and which are not.
Update:
As mentioned by #ivan_vaz in the comments, it is also possible to configure this as well as other permissions by clicking the favicon of the website in the address/navigation bar.

Question about Facebook API login-button (more about a feature of the login-button)

When using the facebook login API, when you click the login button, it opens up the request for permission browser page. I was wondering, how does facebook open up this browser? Also, the browser used for the request for permission page does not let you change URLs, the size is fixed in the beginning, and the browser is very clean (w/o bookmarks or tabs). Is this feature to open up such a browser something that is in the standard html/javascript already? or is it something that facebook made themselves?
To illustrate what I'm talking about, press the fb login at the top of this page:
http://fbrell.com/xfbml/fb:login-button
Thanks!
window.open(URL,name,specs,replace)
specs allows the modifications you're asking about.
Example:
window.open('http://facebooksurlforlogginin', 'Login', 'titlebar=0,menubar=0,toolbar=0,resizable=0,scrollbars=0,width=500,height=400');
https://developer.mozilla.org/en/DOM/window.open

Categories

Resources