auth0 try button linkedin is using v1: This resource is no longer available under v1 APIs - auth0

When I use the try button on auth0.
Menu 'Connections' -> 'Social'
then I use 'try' link on Linkedin
Linkedin is using for test the v1 version, and not the v2 version for linkedin, so when i try to login in on linkedin I get the error:
{
"error": "invalid_request",
"error_description": "InternalOAuthError: failed to fetch user profile (status: 410 data: {\n \"errorCode\": 0,\n \"message\": \"This resource is no longer available under v1 APIs\",\n \"requestId\": \"RN0AITTUWB\",\n \"status\": 410,\n \"timestamp\": 1545991044990\n})"
}
the try linkedin button is using a link like that (old link v1 method):
https://www.linkedin.com/uas/login?session_redirect=...
accord docs from linkedin this is not more valid for news apps
is a bug from auth0?

There appears to be an existing Issue in Github here and a pull request open here. I recommend commenting on these to bring it to the
All developer applications created on the LinkedIn Developer Portal after January 14, 2019 have access to the LinkedIn v2 API by default. Alternatively, if your developer application has made a successful LinkedIn v1 API request from September 1, 2018 to December 17, 2018, your developer application has immediate access to the v2 API.
Source: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

UPDATED: The problem was a bug in auth0, sadly auth0 hidden this information some months, creating a big confusion, some months ago the fixed this problem
OLD:
I've solved this, just, creating a new linkend app (31 december 2018).
go to linkedin developers, and click on 'Create app':
https://www.linkedin.com/developers#
appname: test1linkedin
tab 'auth':
OAuth2 settings, Redirect URL's:
https://yourdomain.auth0.com/login/callback
(very important to work with aut0)

Related

Access Denied error during step 1 of Xero API OAuth2 standard authorization code flow

I have an existing Xero app that's worked well for over a year that uses OAuth2 to connect a small number of organisations to one of three Web Apps: developer, sandbox, and production. Sandbox and production are working well. However, yesterday I started to create a new instance of the developer app and am unable to complete the first step. My app calls the following URL:
https://login.xero.com/identity/connect/authorize?response_type=code&client_id=069BFC79B7REDACTED&redirect_uri=https%3A%2F%2Fdev.addressredacted.ngrok.io%2Fcotrustee%2Fxero&scope=offline_access+accounting.transactions+accounting.settings+accounting.journals.read
This URL has the same form that has worked for over a year, just with a new client_id, but now I keep getting this error:
Access Denied
You don't have permission to access "http://authorize.xero.com/?" on this server.
Reference #18.d2fdda17.1671639885.53ec38b
I expect to be redirected to a Xero login page instead.
From the Ref# that you received, it looks like it has hit the Akamai WAF. Unfortunately the code has expired (it only has a lifetime of 24 hours) thus we are unable to check why it was blocked.
Can you contact Xero API Support - api at xero dot com - with a newer reference so we can further investigate?

Google My Business API: Getting 404 Error

I recently signed up for Google My Business and I'm trying to use OAUTH playground in order to make API requests.
Here's my info:
Project name
SalesForce
Project ID
salesforce-273422
Project number
310709897826
I'm running into issues with the google my business API. I am trying to follow instructions listed here: https://developers.google.com/my-business/content/basic-setup#make-simple-http-request in order to make some request to the My Business API.
My client ID is 310709897826-i0qmgqucprqug6gmtb32oualp4q7k374.apps.googleusercontent.com and I am still unable to make any successful requests with the oauth playground, i get a 404 not found when i try to list all accounts. Is there any configuration that is incorrect or that I'm missing?
Please help! I'm unsure what's wrong.
First of all, open the playground [https://developers.google.com/oauthplayground], from the top right side, follow the pic below and copy paste your clientId, make sure you have selected "client-side".
Then, on the left side, eneter https://www.googleapis.com/auth/business.manage and press the button "Authorise Apis"
Next, you are asked to sign in with your client username and password, so after signing in, you are given about an hour or so to work in playground:
Did you include the "OAuth Client ID" in the OAuth 2.0 Configuration tab? with
OAuth flow:Client side
Use your own OAuth credentials: (mark with a tick)
OAuth Client ID: (enter your oauth client id)
In step 1: https://www.googleapis.com/auth/business.manage
In step 2: https://mybusiness.googleapis.com/v4/accounts

V2 API - Not enough permissions to access

Unable to share after being issued with an access token for w_share
{"serviceErrorCode":100,"message":"Not enough permissions to access: POST /ugcPosts","status":403}
Unable to request permissions for w_member_social w_organization_social r_member_social r_organization_social OAuth flow just redirects to redirect uri provided without displaying LinkedIn login, no code is provided on redirect either. There is no mention that you need to be a partner to access the V2 API and as of March, there is no option to continue using V1.
Do you now need to be a partner to access the V2 API?
for r_liteprofile (replaces r_basicprofile) , r_emailaddress, w_member_social (replaces w_share)
not need partner any other you have to apply for partnership program
till March 1st you can use V1 after that that will not available
check this : https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

Firebase Google OAuth redirect error

I'm migrating from Firebase 2 and AngularFire 1 to Firebase 3 and AngularFire 2. With Firebase 2 and AngularFire 1 I had all six auth options working: Google, Facebook, Twitter, Github, e-mail & password, and anonymously. Now with Firebase 3 and AngularFire 2 five auth options are working but Google OAuth refuses to work. I'm using $scope.authObj.$signInWithPopup("google"). The pop-up pops up but then there's an error message:
The redirect URI in the request, https://crudiest-firebase.firebaseapp.com/__/auth/handler, does not match the ones authorized for the OAuth client.
In my Google Developers Console I have the authorized redirect URI set to https://crudiest-firebase.firebaseapp.com/__/auth/handler. This is the URI that works for Facebook, Twitter, and GitHub, and it's the same URI that's in the error message.
This error message has persisted for several days.
Just to make it easy to compare:
https://crudiest-firebase.firebaseapp.com/__/auth/handler // rejected redirect URI
https://crudiest-firebase.firebaseapp.com/__/auth/handler // redirect URI in console
Any suggestions why Google is giving me this error message?
Google's error message includes a project ID. The Google Developers Console has a project ID for each project. These two project IDs didn't match. When you create a project in the Google Developers Console you get a "Client ID" and a "Client secret." You can then enter or change these in the Firebase Console by selecting your project, then selecting "Auth" in the left column, then selecting the "SIGN-IN METHOD" tab, then select "Google," then click the arrow to open "Web SDK configuration (optional)." You'll then be able to change the "Web client ID" and the "Web client secret."
After hours I found solution, may be help
At the link: https://console.cloud.google.com/apis/credentials?project={your-project}

Google Analytics API authentication

I was using this code until yesterday:
$gaemail = 'my email';
$gapassword = 'my password';
$gaprofileid = 'my profile id';
require 'gapi.php';
$ga = new gapi($gaemail,$gapassword);
Today it started giving me the error:
Exception: GAPI: Failed to authenticate user.
Error: "https://developers.google.com/accounts/docs/AuthForInstalledApps " in C:\wamp\www\projects\gapi.php on line 418
Was there any changes recently regarding the authentication process?
See: GAPI: Failed to authenticate user. Permanent fix PHP
GAPI hasn't been worked on since 2009. It also appears to use client
login which was discontinued / shutdown on April 20 2015. You can no
longer use client login with Google Analytics API, you need to switch
to Oauth2 or a service account. So either the author of that project
needs to fix his code, it appears to be an open source project so you
could probably fix it for him.
You have a couple of choices. Looks like the latest version of GAPI now has oauth support - see: https://github.com/erebusnz/gapi-google-analytics-php-interface or use the Google API PHP Client (https://github.com/google/google-api-php-client).
Version 2.0 on GitHub of the GAPI has been released which support OAuth2 authentication. Google has disabled all other forms of authentication.
Note that OAuth2 will require you to create a 'service account' and then download a P12 file to upload to the server. Finally you will need to adjust the developers console, enable 'analytics API'. Finally give this new user 'Read and Analyse' permissions on the Google Analytics accounts you want to access.