Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google example #47

Open
Khalezis opened this issue Jan 19, 2012 · 5 comments
Open

Google example #47

Khalezis opened this issue Jan 19, 2012 · 5 comments

Comments

@Khalezis
Copy link

Can we have a google exemple for the plugin. Because I have a error. Indeed, i have an invalid token.
This is my log's file:

Jan 19 04:21:07 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signin" (/guard/login)
Jan 19 04:21:07 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_signout" (/guard/logout)
Jan 19 04:21:07 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_register" (/guard/register)
Jan 19 04:21:07 symfony [info] {sfPatternRouting} Connect sfRoute "sf_guard_forgot_password" (/guard/forgot_password)
Jan 19 04:21:07 symfony [info] {sfPatternRouting} Connect sfDoctrineRoute "sf_guard_forgot_password_change" (/guard/forgot_password/:unique_key)
Jan 19 04:21:07 symfony [info] {sfPatternRouting} Match route "api_connect" (/api/connect/:service) for /api/connect/google with parameters array ( 'module' => 'api', 'action' => 'connect', 'service' => 'google',)
Jan 19 04:21:07 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter"
Jan 19 04:21:07 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter"
Jan 19 04:21:07 symfony [info] {apiActions} Call "apiActions->executeConnect()"
Jan 19 04:21:07 symfony [info] {OAuth} call url "https://www.google.com/accounts/OAuthGetRequestToken" with params "oauth_callback=http%3A%2F%2Faltezis.localhost%2Ffrontend_dev.php%2Faccess%2Fgoogle&oauth_consumer_key=17975136939624396761&oauth_nonce=53ac9899c9bfce3a57b12849d8a89f5d&oauth_signature=tLTTChL10uGH5zM5i0dXXlY7KQQ%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1326943267&oauth_version=1.0&scope=http%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds" post "" by method "POST" give response "Consumer is not registered: 17975136939624396761

"
Jan 19 04:21:07 symfony [err] {OAuth} access token failed - google returns Array
(
[Consumer is not registered: 17975136939624396761

] =>
)

Jan 19 04:21:07 symfony [info] {OAuth} "google" call url "https://www.google.com/accounts/OAuthAuthorizeToken" with params "array (
'oauth_token' => NULL,
)"
Jan 19 04:21:07 symfony [info] {sfFrontWebController} Redirect to "https://www.google.com/accounts/OAuthAuthorizeToken?"
Jan 19 04:21:07 symfony [info] {sfWebResponse} Send status "HTTP/1.1 302 Found"
Jan 19 04:21:07 symfony [info] {sfWebResponse} Send header "Location: https://www.google.com/accounts/OAuthAuthorizeToken?"
Jan 19 04:21:07 symfony [info] {sfWebResponse} Send header "Content-Type: text/html; charset=utf-8"
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Configuration 1392.55 ms (8)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Factories 427.99 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Action "api/connect" 432.11 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebResponse} Send content (123 o)
Jan 19 04:21:07 symfony [info] {sfPHPView} Render "C:\Users\Thibaut\workspace\PHP\Altezis\apps\frontend\modules/api/templates/connectSuccess.php"
Jan 19 04:21:07 symfony [info] {sfPHPView} Decorate content with "C:\Users\Thibaut\workspace\PHP\Altezis\apps\frontend\templates/layout.php"
Jan 19 04:21:07 symfony [info] {sfPHPView} Render "C:\Users\Thibaut\workspace\PHP\Altezis\apps\frontend\templates/layout.php"
Jan 19 04:21:07 symfony [info] {main} Call "main->executeLanguage()"
Jan 19 04:21:07 symfony [info] {sfPartialView} Render "C:\Users\Thibaut\workspace\PHP\Altezis\apps\frontend\modules/main/templates/_language.php"
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Configuration 1454.77 ms (10)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Factories 427.99 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Action "api/connect" 866.18 ms (2)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} View "Success" for "api/connect" 227.29 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Component "main/language" 74.20 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebDebugLogger} Partial "main/_language" 24.12 ms (1)
Jan 19 04:21:07 symfony [info] {sfWebResponse} Send content (818 o)

Can you help me?

@sglessard
Copy link

Hello, have you registered your domain?
https://accounts.google.com/ManageDomains

@Khalezis
Copy link
Author

Hello,

No I haven't. Endeed, i haven't domain because i am working in local. If Iunderstand you can't work with a google account in localhost?

@sglessard
Copy link

I'm not quite sure but I think so.
You should take a look at Google about this
:)

@Khalezis
Copy link
Author

Can I have an exemple of the file app.yml with google please?

@yurikosan
Copy link

I'd like to see this app.yml too, guys! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants