Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a public IP address be used as Google OAuth redirect URI?

Tags:

google-oauth

I'm trying to set a web service that needs the user's Google Latitude info, so I'm using Google OAuth to get the user authorization stuff.

However, when trying to set the redirection URI in the Google APIs Console for a web application client ID I get a message error if I try to set it to 'http://PUBLIC_IP/'.

I need to test it with non local users (thus localhost can't be used), so I would like to know if having a web domain is mandatory in order to use Google's OAuth. If not, how can I solve this issue?

like image 628
jgg Avatar asked Jan 09 '13 15:01

jgg


People also ask

What should be the redirect URI in oauth2?

A redirect URI, or reply URL, is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token.

What is OAuth redirect?

Redirect URLs are a critical part of the OAuth flow. After a user successfully authorizes an application, the authorization server will redirect the user back to the application.


1 Answers

This is not currently supported. I filed a feature request and will update on progress.

like image 107
breno Avatar answered Oct 04 '22 20:10

breno