Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8601505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:51:37+00:00 2026-06-12T01:51:37+00:00

I am really lost trying to configure FOSOAuthServerBundle. I think I have correctly installed

  • 0

I am really lost trying to configure FOSOAuthServerBundle.

I think I have correctly installed it. Actually, I have created a command for registering new Clients. I have added one, but when I go to oauth/v2/auth with the required data, I get errors and errors. Now, I am in one really stopped:

Fatal error: Call to a member function isAuthorizedClient() on a non-object in /Users/pgbonino/Sites/Symfony/vendor/bundles/FOS/OAuthServerBundle/Controller/AuthorizeController.php on line 62

The exact line is the one with the if sentence:

    $event = $this->container->get('event_dispatcher')->dispatch(
        OAuthEvent::PRE_AUTHORIZATION_PROCESS,
        new OAuthEvent($user, $this->getClient())
    );

    if ($event->isAuthorizedClient()) {
        $scope = $this->container->get('request')->get('scope', null);

        return $this->container
            ->get('fos_oauth_server.server')
            ->finishClientAuthorization(true, $user, null, $scope);
    }

Previously I have had other errors, but I think they are solved thanks to forums, documentation and issues. But now I am stopped here.

Any clue on this?

I found also this solved issue in the bundle that seems to be related. But still not able to solve mine: https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/pull/46

Thanks a lot.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:51:38+00:00Added an answer on June 12, 2026 at 1:51 am

    Solved!

    It was a matter of differences between Symfony 2.0 and 2.1 on the treatment they do with dispatchers.

    I had downloaded a Symfony2.1 version of FOSAUthServerBundle in Symfony2.0 environment.

    It’s well explained in several issues of the bundle itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm really new in TDD and, actually, I'm trying to follow the sample from
I am really lost with trying to order an ul list by the span
I am really lost here, i am trying to find my way around xml
I'm really lost on this case. I am trying to apply a custom MVC
i'm really lost on some code. Im trying to draw a dayview calendar with
I'm trying to sort an array least to greatest and i am really lost....
This is probably really easy, but I'm lost on how to make sure it
Really ripping my hair out on this one. I have a JAAS Authentication Provider
Really quick jQuery question... I have this function: $(document).ready(function() { $('a#show1').click(function() { $('.item1').toggle(1000); return
I have been trying to figure out how to implement a simple xml rpc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.