pulse00 / redmine_google_docs_plugin

Redmine google docs plugin
38 stars 3 forks source link

Google Docs Account without App Account not working Error 500 #2

Open saintxseiya opened 13 years ago

saintxseiya commented 13 years ago

hi,

i am trying to connect over "My account" with my google account, WITHOUT App Domain. I get to the question if i want to add the site as reliable and i am franting the access.

After that i should be redirected to my account right? But i get an error 500 message and the production.log shows this.

Processing AuthsubsController#finish (for 217.67.37.200 at 2011-01-19 13:05:54) [GET] Parameters: {"token"=>"xxxxxxxxxxxxxxxxxxxxxxxx", "action"=>"finish", "controller"=>"authsubs"}

NoMethodError (undefined method closed?' for nil:NilClass): /opt/bitnami/ruby/lib/ruby/1.8/net/http.rb:1060:inrequest' gdata (1.1.1) lib/gdata/http/default_service.rb:69:in make_request' gdata (1.1.1) lib/gdata/auth/authsub.rb:101:inupgrade' vendor/plugins/redmine_google_docs_plugin/app/controllers/authsubs_controller.rb:53:in `finish'

Rendering /opt/bitnami/apps/redmine/public/500.html (500 Internal Server Error)

pulse00 commented 13 years ago

sorry, i can't reproduce that problem here, also with a "regular" google account. could you check the following:

  1. Disconnect your account in the "my account" page
  2. Make sure the correct email address is in the "Account email", ie. "your.name@gmail.com"
  3. Make sure the "App domain" field is completely empty (no spaces too)
  4. Connect your account again
rnuno commented 13 years ago

I'm trying this plugin and i have a Google Apps domain. And this is what is happening:

The browser has all Cookies, History, Passwords clean.

"Account email" -> rnuno@mydomain.net "App domain" -> empty Connect

After that a google page appears saying:

A third party service is requesting permission to access your Google Account. In order to authorize a third party service to access your account, you must sign in.

I sign in with my account an then:

The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but sent a malformed request. Please contact the site that you were trying to use when you received this message to inform them of the error. A detailed error message follows:

The site "http://mydomain.net" has not been registered.

mrtngrsbch commented 13 years ago

yes... I have the same problem: https://www.google.com/a/mydomain.com/AuthSubRequest?next=http%3A%2F%2Fwww.mydomain.com%3A3000%2Fauthsubs%2Ffinish&scope=http%3A%2F%2Fdocs.google.com%2Ffeeds%2F&session=1&secure=0&hd=mydomain.com

The site "http://mydomain.net" has not been registered.

zech commented 13 years ago

same here. it does not work. exactly like rnuno or a5ad0r

spazm commented 13 years ago

This is how I fixed this problem of 'the site "http://example.com" has not been registered' when using google app domains. Register your redmine domain with google via Registration For Web Apps / Manage Domains.

Documentation for registration is here: http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html

1) Go to Manage Domains: https://www.google.com/accounts/ManageDomains

2) Enter your redmine domain examples: a) http://redmine.example.com -> enter redmine.example.com b) http://example.com/redmine -> enter example.com

3) Verify your domain registration. a) Download the "HTML Verification" html page b) put the downloaded html page into the "public/" directory of your redmine installation. c) verify the html loads properly d) click the [verify] button on the registration page

4) configure the domain: a) set the "Target URL path prefix: " field. http://redmine.example.com:80/authsubs or http://example.com:80/redmine/authsubs

After step 4 the registration page should list your domain as "(Active)".

5) configure your user in redmine. a) redmine->my account http://redmine.example.com/my/user b) In the Google Docs section Account email: user@example.com App Domain: example.com Save, then try "connect". remember to save first!

nroach commented 12 years ago

I'm seeing the same problem using a gmail account (not an apps domain).

I get

The page you have requested cannot be displayed. Another site was requesting access to your Google Account, but >sent a malformed request. Please contact the site that you were trying to use when you received this message to >inform them of the error. A detailed error message follows:

The site "http://[redminedomain].com" has not been registered.

For straight Gmail, is there something that needs to go in the domain field?

--Updated-- Oh, I see. Looks like the redmine server's domain itself needs to be registered. That works I guess, but kind of poses an issue for development, test, and internal servers that might not be registered in DNS at all.