How do I open a Flutter wep app page from an email link? - authentication

I currently have it so that when a root user adds a new user to group(via email), it will send a message to their inbox with a link to create a password on the web page. However, do not know how to create a link that will send them to a registration page on my Flutter web app after they click on it in their email. Any ideas?

Related

Open the Twitter app instead of the site for authorization APP

I have a site that Login with Twitter API.
User redirect to this link to Accept :
https://api.twitter.com/oauth/authenticate?oauth_token=XXXXXXXXXXXX
My problem is that in mobile, it enters the Twitter site through a browser and needs to log in to the Twitter account ** But all users use the Twitter app!!**
**
Is there a way to enter the Twitter app through the site and confirm without the need to log in again?
**
You can use this link to open Twitter App.
twitter://endpoint?token=X
More information in this StackOverFlow question.

OAuth Consent Screen Dispay Issue

We have developed an new application which has been integrated with Google File Picker API on Client side application. We are trying to show the OAuth Consent Screen to the end user by showing the Application name " Gsuite Intergration" when the user try to login OAuth Sign In screen.
For running the application from local development server (https://localhost:4200) then OAuth pop up showing the Application name like "Continue to Gsuite Intergration" before the Sign in Header. Its expected behaviour what we are looking. Please refer the "GoogleFilePickerPopup_Localhost.png" attachment.
But when we deploying same application into the server (https://applicationname.domain.com) then OAuth pop up showing as "Continue to domain" instead of "Continue to Gsuite Intergration" before the Sign in Header. Its not expected behaviour as we need to display the Application name what we have updated Under the Oauth Consent screen. Please refer the "GoogleFilePickerPopup_server.png" attachment.
You need to request app verification so your brand configuration can be verified before the name is displayed to your users. See the OAuth App Verification FAQ about circumstances under which verification is needed: https://support.google.com/cloud/answer/9110914?hl=en#circumstances

Parse Twitter authentication log out does not delete the token

I am trying to let the users of my android app log in it via their Twitter account and ran into the following problem. I am using the Parse to store my data and users' information. When the user logs in and then logs out from the app via Twitter, there is a window with the message "authorize app to use your account", so the app is still associated with a particular twitter user. My problem is there is no window with email and password entries, when the user logs out via Twitter (ParseUser.logOut()). How can I unlink the app from the current user and present a new log in window.
Thank you!

Mobile Safari FB.login Oauth Redirect Error

I have a mobile web application that integrates with the Facebook Graph API.
Basically, it uses the JS SDK to obtain details about the viewing user that it can then use to render user specific content.
I use the FB.login function to have the user login to my Facebook app. This should work as follows:
JS on pages detects that user has not logged in to Facebook app
User is given button to click to fire FB.login
User is redirected to Facebook page to authorise the app and login
User is redirected back to my mobile web application
JS on pages detects that user is logged in to Facebook app, polls user data from Graph and renders it.
This all works fine on Android, but the redirect step does not work on Mobile Safari
The user gets an error referring to an EntityRef, which looks like the Content-type being sent to the browser is XML but where the content includes an illegal character:
Error on line 1 at column 49: EntityRef: expecting ';'
This is the actual link that is generating the error:
https://m.facebook.com/dialog/oauth?display=touch&domain=cgfoodscomp.herokuapp.com&scope=email&e2e=%7B%7D&app_id=135937919902029&locale=en_US&sdk=joey&client_id=135937919902029&redirect_uri=https%3A%2F%2Fs-static.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D24%23cb%3Df3cf8ca2ac%26origin%3Dhttps%253A%252F%252Fcgfoodscomp.herokuapp.com%252Ff2d1c54b04%26domain%3Dcgfoodscomp.herokuapp.com%26relation%3Dopener%26frame%3Df35f8ac348&origin=2&response_type=token%2Csigned_request
When you open this in another browser, you get a response with Javascript (I won't post it here as it contains script tags), which contains references to the iPhone:
iPhone.*Version/(5|6)
I'm actually using a Version 4 IOS.
Does anyone know if this stuff is supposed to work in Version 4?
This is a Facebook Bug, which is due for resolution:
https://developers.facebook.com/bugs/339889299473431

Redirect to own site when user logs in via Facebook app

I am building an app with the functionality to publish
messages to users walls while specific actions runs on
my website.
What I have done is (briefly):
Registered my own app on Facebook
Added a login button on my website with permission
to publish:
Log in on Facebook
Downloaded facebook-php-sdk library
It is now I start having problems. I do not know how
to do what I want to do now.
What I want to do:
When a user logs on to facebook via my website. I want
a file on my site to be called, where I can update the
user's data in my own database as well.
Because that is not what the canvas url is meant to do? How it
is no, seems no file at all is called on my site when
I click on Login.
Since you are using the Facebook PHP-SDK you noticed that there are two options for the users to login:
Using the XFBML button, which will:
Open a login dialog (pop-up) asking for permissions..etc
When a successful authentication/authorization is complete the dialog will close, the auth.login event will be triggered and based on that the page will get reloaded window.location.reload();
The PHP in the top of the page will get into business and $session = $facebook->getSession(); will actually retrieve a session! $user = $facebook->getUser(); will retrieve the current user
Using the Login URL generated by the Library $loginUrl = $facebook->getLoginUrl(); this URL will get you through the same flow and if you noticed there's a next redirect_uri parameter which will redirect you back after a successful process to that URL (mainly the same URL you are at), where you can change that parameter if you like.
The canvas URL is the URL Facebook uses when it displays your application from within Facebook. You would use this functionality if you expect users to use your application while in Facebook itself.
When authenticating using Facebook's API (assuming graph API usage here), you provide a redirect_uri as part of the authentication URL. Once Facebook has authorized your application, it will redirect the user's web browser to the URI you specified. This URI can be any link you desire on your site. You should use the link as the determination of when the user is logged in successfully, e.g., https://mywebsite/facebook/loggedin.