Linkedin invalid redirect_uri with ionic.io - ionic-framework

I am trying to add Linkedin authentication with ionic.io following the official tutorial. The tutorial doesn't mention the redirect_uri due to which I have left it as blank. But when I try to login using my Ionic app on android, an error occurs. What is the correct redirect_uri to use in ionic.io application. The linkedin error goes like this:
Invalid redirect_uri. The value must match a URL registered with the API key.

After running the app in debug mode, I finally figured out the redirect_url and its working fine. The redirect url is:
https://api.ionic.io/auth/integrations/linkedin

Related

Facebook Login with easysocial: URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings

I am working on joomla 3.5 to integrate facebook login using a package named EasySocial.
All of my credentials like appId and Secrete are correct but I cant get rid of the above error message.
I am trying to test the functionality on subdomain v2.temarinet.com
What would be the solution for this. What could be the valid url for this.
I have tried
https://v2.temarinet.com/index.php/temarinet-social/
https://v2.temarinet.com/index.php/temarinet-social/
https://v2.temarinet.com/_oauth/facebook?close
Help please. I also attached the screenshot of my facebook app.
I finally found a solution after hours of trying. The valid oauth route for Facebook Login on Joomla using easysocial is
https://example.com/index.php/register/oauthDialog/facebook

Trouble with Account Linking (Actions on Google)

I've implemented an implicit flow for authorization and followed the directions on the docs for account linking, but when I redirect the url back to google, I get:
'Accounts failed to link. Please close your browser and try again'
My authorization URL is:
https://m-auth.herokuapp.com/dialog/authorize?client_id=abc123&redirect_uri=https://oauth-redirect.googleusercontent.com/r/trans-f4514&response_type=token&state=STATE
And my redirect after authorization through my app, is:
https://oauth-redirect.googleusercontent.com/r/trans-f4514#access_token=3c642a215cd0a2e8c8f00eb03535a6304aaf5739&token_type=bearer&state=STATE
When I test this on the playground I get:
Is this the correct req/response I should be getting?
I am also getting "Start Test Failed" when I try to test the app on the simulator.
Could it be a problem that the user is directed to a login screen?
Any clue as to why I am running into these problems? Thanks!
===========================================================================
UPDATE:
I changed the state parameter in the uri to STATE_STRING and it stopped saying that the linking failed, but it is not saying it was successful either:
Does it mean it was successful if I only get the above message?
You misconfigured your redirect url.
Currently the user is redirected to this url:
https://developers.google.com/oauthplayground&access_token=TOKEN&token_type=bearer&state=NULL
Google OAuth required a format like: https://developers.google.com/oauthplayground/#access_token=TOKEN&token_type=Bearer&expires_in=3600
You can test your OAuth endpoint with this OAuth Playground configuration. After granting access to your application you should see the OAuth Playground again but with Step 2 being activated. You can review the token that was retrieved by activating "Step 1's resultAccess token retrieved".

Facebook Api - Authorise giving 400:bad request error

I am using Facebook API for posting message on facebook. I have created a app on developers.facebook.com then I used app_id over there and return url to authorize. but url fails
URL :- https://graph.facebook.com/oauth/authorize?client_id=[API_KEY]&redirect_uri=http://localhost:42485/FaceBookConnect.aspx&scope=publish_stream,manage_pages
This is throwing 400 error. I am using Facebook .net sdk.
I forgot to mention redirect url name in "Valid OAuth redirect URIs" at developers.facebook.com under your app setting.
The thing that messed stuff up for me was "Native Desktop App" MUST be off.

Facebook App: Firebase Simple Login URL error

I am trying to make my first app using Facebook login and the Firebase Simple Login. I am running the system locally on http://localhost:8000/. The error I am receiving upon clicking the login button is below.
"Given URL is not allowed by the Application configuration.: One or
more of the given URLs is not allowed by the App's settings. It must
match the Website URL or Canvas URL, or the domain must be a subdomain
of one of the App's domains."
I have tried running it on a production facebook app and a facebook test app as well as added URL redirects and website platforms following other forum post I have seen, but nothing is working for me. Anyone have any suggestions?
I discovered in the Firebase documentation that https://auth.firebase.com/auth/facebook/callback must be input into the Valid OAuth redirect URIs under the advanced settings.
Recap of Facebook Test App Settings:
Under Basic App Settings:
Domain = localhost:8080
URL = http://localhost:8080
Under Advanced App Settings:
Valid OAuth redirect URIs [http://localhost:8080/ ; https://auth.firebase.com/auth/facebook/callback]
with newest version, Valid OAuth redirect must be set as : https://.firebaseapp.com/__/auth/handler

Facebook oauth server-side / no code exchange when ref=m_notif

I have a facebook app in a canvas that is working very fine.
I enabled referral authentification.
I recently enabled my mobile web app link, so now I can access my app from facebook app or from
http://m.facebook.com/apps/MY_APP
I coded the necessary server-side handling of the ?code= parameters to generate an access_token so it works fine. (I request access_token using a redirect_uri that is my current url up to "&code=")
My problem is when I try to open my mobile web app from an app request (on my mobile), The access_token request fails (surely because of the redirect_uri parameter).
After a lot of investigation I found out that the only problem was the ref=m_notif paramater.
Basically if I try to access my app with m.facebook.com/apps/MY_APP/*almost any string or parameter I want* it works
BUT
If I try to access my app with m.facebook.com/apps/MY_APP/?ref=m_notif it FAILS. any other ref=*string* is fine.
Do you know what I should do here ?
Thanks a lot