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

The client MUST NOT use more than one authentication method in each #312

Open
lellomaverick opened this issue Jul 16, 2022 · 1 comment
Open

Comments

@lellomaverick
Copy link

Hello everyone, I am using a private Identity Access Manager and I am able to complete the login process until I return to my application. This is the simple code:

$oidc = new OpenIDConnectClient(
'https://aaa.it/oauth2/token',
'xxx',
'yyy'
);
$oidc->addScope('profile');
$oidc->addScope('email');
$oidc->addScope('api');
$oidc->setCodeChallengeMethod('S256');

$oidc->authenticate();

After logging into IAM, I go back to my application and I have in GET code, state, session_state. Using the same code as before I get this message: The client MUST NOT use more than one authentication method in each. The requestTokens function returns this error to me.

What can I do to solve the problem?

@marzoli
Copy link

marzoli commented Dec 7, 2022

The problem is in the requestTokens method where if is set 'code_verifier' it is also set 'client_id' but the variable $authorizationHeader is not unset correctly. Please fix it.

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

2 participants