Skip to content

Google example #47

Description

@Khalezis

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions