Open leventyalcin opened 10 years ago
When I force to HTTPS I started to get error below;
Error: invalid_client
no application name
Request Details
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
response_type=code
redirect_uri=https://redmine.domain.com/oauth2callback
client_id=910957160597-mu1o3prbc01v9sf2tg4nc8livv450jdk.apps.googleuserconte
Changes I've made
# diff redmine_omniauth_google/app/controllers/redmine_oauth_controller.rb /tmp/redmine_oauth_controller.rb
10c10
< redirect_to oauth_client.auth_code.authorize_url(:redirect_uri => 'https://redmine.domain.com/oauth2callback', :scope => scopes)
---
> redirect_to oauth_client.auth_code.authorize_url(:redirect_uri => oauth_google_callback_url, :scope => scopes)
21c21
< token = oauth_client.auth_code.get_token(params[:code], :redirect_uri => 'https://redmine.domain.com/oauth2callback')
---
> token = oauth_client.auth_code.get_token(params[:code], :redirect_uri => oauth_google_callback_url)
Stopped thin and started webrick with SSL support and URLs changed to HTTPs but still no luck
Error: invalid_client
no application name
Request Details
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
response_type=code
redirect_uri=https://redmine.domain.com/oauth2callback
client_id=910957160597-8u7iqo3pa10p3i6i54ls74daut8jg3f0.apps.googleusercontent.com
That’s all we know.
And stil I'm sure Google Apps configuration is OK. http://prntscr.com/4pwicg
So, Found what is wrong at here http://stackoverflow.com/a/18951654/953706 and it works now.
I just still no idea why it sets protocol from server insted of requests. It works like SSL Requests -> Nginx -> SSL Requests -> Webrick (thin etc). dunno. Maybe I'm missing something.
Hi,
I tried everything i can do but no luck. Only I can see error above.
I'm sure it is not
HTTP://
at Google Developer Console http://prntscr.com/4ptsqlignore domain.com i changed it