request token URL should be: *https://accounts.google.com/o/oauth2/token
<https://accounts.google.com/o/oauth2/token>*

All other parameters seems to be correct
The only thing is currently works not as expected is: in case email is
already exists in OM DB exception is thrown and meaningдуыы error page is
displayed to the user, I'll create JIRA issue regarding it

On Tue, Apr 7, 2015 at 7:02 PM, Gil Obradors <[email protected]> wrote:

> Hello!
> I'm trying to configure Oauth2-Google for my OpenMeetings 3.04
>
> I have alredy activated Google+ API and configured with my clientID and
> secret
>
>
> However auth isn't working, once your are authenticated with google, OM
> redirects to a white page with internal error text display.
>
> I have attached my log and my current config
>
> *Name  *Google
>
> *IconURL* https://www.google.ru/images/google_favicon_128.png
>
> *client_id* XXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> *client_secret* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> *Redirect_uri* https://conferencia.guifi.net/openmeetings/signin?oauthid=2
>
> *Request Key URL *
> https://accounts.google.com/o/oauth2/auth?redirect_uri={$redirect_uri}&response_type=code&client_id={$client_id}&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile
> <https://accounts.google.com/o/oauth2/auth?redirect_uri=%7B$redirect_uri%7D&response_type=code&client_id=%7B$client_id%7D&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile>
>
> *Request token URL*
> https://accounts.google.com/o/oauth2/auth?redirect_uri={$redirect_uri}&response_type=code&client_id={$client_id}&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile
> <https://accounts.google.com/o/oauth2/auth?redirect_uri=%7B$redirect_uri%7D&response_type=code&client_id=%7B$client_id%7D&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile>
>
> *Request token atrib*
> code={$code}&client_id={$client_id}&client_secret={$client_secret}&redirect_uri={$redirect_uri}&grant_type=authorization_code
>
> *Request info*
> https://www.googleapis.com/oauth2/v1/userinfo?access_token={$access_token}
>
> *Login Param name *email
>
> *Email Param name* email
>
> *FirstName Param name* given_name
>
> *LastName Param name* family_name
>
>
>
>
> Have anyone google-oaut2 running with OM3?
>
>
> Thank's!
>



-- 
WBR
Maxim aka solomax

Reply via email to