I am making a streaming website with flask as the background and using flask login to maintain the login system. So everything is going well and fine but whenever i change anthing in the html the user is getting logged out in pc but staying logged in mobile .
any possible reasons for this and the solution
Related
We have the requirement to handle and pass the JSESSIONID into webpage to achieve the auto login.
We are developing the ionic based hybrid mobile app and we have the option to use inApp browser to open the PWA app page.
the requirement is who are logged user, the user should not enter the credentials to login inApp browser page with help of JSESSIONID token passing to achieve this solution.
The developed page Liferary portal page and mobile app developed ionic based application.
how do we pass the JSESSIONID id while using inApp browser page link. we do not have any idea about, how do we pass the JSESSIONID value along with webpage.
I saw the sample in CURL pages open but how de we use similar approach or any other best solution ionic mobile app.
https://help.liferay.com/hc/en-us/articles/360036708571-Making-Authenticated-Requests#using-cookie-authentication-or-doing-a-request-from-the-portal
how to pass JSESSIONID and headers in inApp browser in ionic or cordova based application. please help us and give you inputs
You can try to set the cookies using the executeScript as mentioned below.
Also, you can set the browser to be hidden so the user won't feel that the login page was opened.
this.inAppBrowserInstance = this.inAppBrowser.create(URL, '_blank');
this.inAppBrowserInstance.on('beforeload')
.subscribe(event => {
this.inAppBrowserInstance.executeScript({ code: `document.cookie = "JSESSIONID=cookievalue"` }).then()
Please note the I didn't test the code on a device
I am having a really strange issue with a single user when using Xamarin.Auth for authentication. This user has a Samsung Galaxy S3. When they try to sign in to their account using Xamarin.Auth, the WebView which Xamarin.Auth uses to display the login page has no JavaScript enabled. This means that they are unable to click the sign-in button on the page, preventing them from signing in.
I can provide code examples, however they do not differ much from the Xamarin.Auth examples/docs. Also, This issue is particular to this user in that I have tested my app with another Galaxy S3 and the authentication works as expected.
I am really unsure as to how to debug this issue, any help would be appreciated.
https://components.xamarin.com/view/xamarin.auth
I have developed an IOS app using PhoneGap and need to integrate Dropbox . I am using Cordova 3.1.0 under IOS 7.1.2 .
From my phonegap app I launch InAppBrowser and point it to my server page that has the js API for the chooser dropin, this launches fine and if the user is not logged into Dropbox they are asked to login as expected. Once logged in the users files are displayed, so I think everything is good with my app key etc.
The problem occurs when the user selects a file and clicks the choose button. I got the message: "Unable to close this window. Please close it manually and return to the previous site."
I was wondering if anyone else has experienced this issue, or has any advice for implementation.
(almost the same issue as :
Dropbox choose button does not return in ios8 - But with IOS7)
It appears to me that PhoneGap's InAppBrowser doesn't support window.close. It might be possible for you to inject some JavaScript via your app that provides an implementation for window.close, or you might need to use the native browser instead of an embedded one.
I've made a website which allow you to login with Facebook using the Javascript SDK, than I show it in a Facebook App with a Facebook Canvas.
It works fine on PC, both in website and Facebook Canvas App.
I tried it on Android Browser and it works fine, but if I post the url on Facebook, and I click it, Facebook loads it inside the Facebook Android App, and when I click on the Login Button nothing happens.
What could be wrong?
(I use JQuery)
I am using javascript facebook SDK to build a login flow and check if user likes a page, so far so good it works fine except in iPhone web app view, there after login (both method login button or calling FB.login API function) does not redirect me back to configured url in facebook app settings.
in iPad, web app view (aka home screen shortcut), login dialog does not render at all. killing...
It works flawless in desktop browsers, Android browsers, Chrome but not on iOs devices.
iPhone at least opens a dialog with login window but no redirect.
What I tried so far, is
Manual location.href but no effect in mobile web app view
Checked configured url in page settings, also it works everywhere else excpet iOs devices, so less probable
addred display:touch and redirect_uri in scope parameter of FB.login call
use direct url with oAuth https://www.facebook.com/dialog/oauth?client_id={app-id}&redirect_uri={redirect-uri}
Took example from facebook developer site as is
https://developers.facebook.com/docs/facebook-login/login-flow-for-web/v2.0
Cursed FB API 1000 times.......for such an inconsistent behavior
Followed so many threads all over the web...nothing helps.
Here is the test page, if you want to see whats going wrong...
http://www.villa-westend.nl/test.html
Any help is appreciated. I am out of ideas now.
Thank you.