[InterMine Dev] Problems with Google OAuth2

Sam Hokin shokin at ncgr.org
Thu Oct 22 20:24:44 BST 2020

I'll add that the Google Legacy People API mentioned in the error response seems to have vanished, i.e. you cannot reach the given 
developer panel page to turn it on. This may explain why some previously configured IM OAuth setups still work, but I cannot get the 
old API URI to work with a new setup. A post on a Stack Overflow thread says to use the new People API instead, which I have enabled 
for the LIS mine project and which returns the JSON error.

On 10/22/20 1:14 PM, Sam Hokin wrote:
> I've configured Google OAuth2 for the LIS mines (OAuth consent screen) and specifically BeanMine (client_id, secret and redirect 
> URI). It seems to work OK up to actually getting the auth back to the mine. If I use the default API URI, which is coded in 
> intermine/webapp/src/main/webapp/WEB-INF/global.web.properties:
> oauth2.GOOGLE.identity-resource = https://www.googleapis.com/plus/v1/people/me/openIdConnect
> Google returns
> message    "Legacy People API has not been used in project 385508380982 before or it is disabled. Enable it by visiting 
> https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=385508380982 then retry. If you enabled 
> this API recently, wait a few minutes for the action to propagate to our systems and retry."

More information about the dev mailing list