Captive Portal on Android 5.1+ - openwrt

I want to use captive portal. I want the user to get authenticated after they accept the terms and conditions, followed by a redirect to the advertisement page.
However, when a user connects and is authenticated by the authentication server, the browser window is closed automatically on Android 5.1+. We want to keep it open so that we can show some advertisements after the user is authenticated.
This might not look like a technical post, but I want to know if anybody has some solution? If you think it's not possible to solve this, then please let us know. Or if you have any experience with such issue please share.
We are using openwrt 15.05 + wifidog.

Related

Is it possible to use safari cookie in Application web view

I just want to know if you think it's possible to get credentials from safari cookie to log someone directly in web view in my app.
I have a "linkedin connect" way to connect into my app.
For the moment, if you have the Linkedin application installed on your device, you could connect in one click. But if you don't have it locally, I opened a webview on linkedin to ask you if you are ok to give us access to your information to create your profile. But currently the user has to re-enter their email and password manually since they don't benefit from the browser's login data.
I would like to fill the field or connect directly the user if he was connected in safari, Do you think it's possible, if yes, what can I used to do this?
Thank you!
NO, thats not possible. Safari is different app than your app and hence web view is safari don't share anything with web view with your app until it has extension to share.bjects of UIWebView class and Safari or other browsers are different and sandboxed. You can check here (official documentation.)
What you want with Linked in is possible with Facebook -- because face book login authentication method provides way to share data between apps -- But in Linkedin there is no similar way.
As given in the answer here, Safari and UIWebview don't seem to share cookies as they are sand boxed from one another.

Authenticate an iOS web app (licensing)

We are having an iOS web app for the iPhone 6s. This app needs user authentication in the context of licensing. The user should be able to authenticate himself and must not be able to give his own license to someone else.
Here are the ideas I was thinking of yet:
1: IMEI
If I could retrieve the IMEI using PHP or JavaScript, it would be a great start. But this is not possible, unless it's a native app. And that's just not an option here.
2: Authentication token
Passing a secret authentication token through the URL, like a serial key could work. But the user could easily give it to someone else. And checking IP addresses to detect unlicensed use is not easy, because IP addresses of mobile devices change and make it hard to distinguish one user having different IP addresses from multiple users.
I'm trying hard to think outside the box. But is there any way to authenticate the user of this iPhone web app securely?
We don't want security through obscurity solutions here; It may be not possible to make it definitely impossible to bypass. But it should be as secure as possible.

Open LinkedIn profile page from ios native app

I want to directly open LinkedIn app (already installed) from our app. I followed the LinkedIn deep link URL scheme like:
linkedin://profile?id=35932112
The LinkedIn app opens and shows the target person. However, when it is above 3rd degree connection, it shows very limited information and asks to upgrade to premium account. But if I navigates to other persons within LinkedIn app, I can still see the full profile even above 3rd degree connection.
Did I miss anything? Is it LinkedIn policy or I have to do some more configurations?
Thank you very much in advance!
Try using the profile's public url instead, it's working well for me. The LinkedIn app will intercept it and open to the profile instead. The url is usually right under the profile picture and has the following format:
https://www.linkedin.com/in/userid
That's right, you cannot display information based on people that are not your primary connections. On newer versions of the app they restricted it even more; now it returns an error for second and third connections.
There is a way to do that but it's not that straight forward. Not sure what your logic is like and will it be helpful but it's something.
So when you login with LinkedIn you can request the public-profile-url property, it will be returned in the result as publicProfileUrl and then you can save it in your backend. This way it will be saved for all the users that has authenticated for the app. When you try to open that link it will open the LinkedIn app or Safari with that profile.
PS: Hope this helps someone, I can see you question is some time ago :)

Friend Invite System for iPhone

I am looking for information on how to implement a friend system within my iPhone app. The app is going to use a web server to check login's. So would the logical thing be to have the friend system setup through the web server as well? I am clueless on what I need to brush up on to be able to implement such a thing so any information/tutorials/open-source code/guides would be helpful to help me understand how it works. Thanks.
Ask new users about their email (login) and passwords. Also let users to invite to your app his/her friends via:
Direct input of known email address.
Selection friend from iOS addressbook (you will also need an email there).
Then just take care of maintaining lists of friends' emails on server side (or both server and client side).

Automatic login on facebook from my site

I am working on a web application, I am using graph API with php sdk for accessing the facebook features.
I am using facebook connect and it is working fine for login, but every time a user come to my site and get login by using the login button.
I want to make this automatic, Is there any way that when users come to my site they get logged in automatically.
How can I achieve this..
anybody help please.
thanks in advance.
Danish
If the user does not explicitly authorize you to get some private data from his Facebook account (included his Facebook ID), you can not get them.
I cannot think of a way to get the Facebook ID without the authorization of the user. So no way for you to automatically log in users.
Hope that helps.
I would say that maybe you shouldn't make it to connect automatically, some viewers of your website might not be very happy that as soon as they get there they are automatically logged in with their facebook profiles, pictures, information, etc.
Also because there could be another one's facebook already connected on the same computer, but still...
My advice would be to just leave a button to login when the user wants.

Resources