Skip to content

Azure ADB2C - Required option not passed: "access_token" with version 2.8+ #1088

@csabavirag

Description

@csabavirag

Hello,

I have the following packages used in my Symfony 7.4 application to use Azure ADB2C for authentication.

Package Version
knpuniversity/oauth2-client-bundle v2.20.2
thenetworg/oauth2-azure v2.2.3

Everything works fine with oauth-client version 2.7, however when I upgrade to v2.8 or above, I keep getting this exception: Required option not passed: "access_token"
The response at this line

$response = $this->getParsedResponse($request);
does not contain the access_token attribute hence I get this exception.

In the config file my scope is defined as
scopes: ['openid profile offline_access']

So no further change on the application, just composer require league/oauth2-client:2.8.0 and I get the error.

Do you have any advice what I should change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions