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

Undefined index: openid_connect_state #255

Closed
michug opened this issue Mar 22, 2021 · 2 comments
Closed

Undefined index: openid_connect_state #255

michug opened this issue Mar 22, 2021 · 2 comments

Comments

@michug
Copy link

michug commented Mar 22, 2021

I have a backend project (Laravel php)
And a frontend project (Vue js)

I created an authenticate function in a controller:

$issuer = 'https://broker.netid.de';
$cid = 'myClientId';
$secret = 'myClientSecret';
$oidc = new OpenIDConnectClient($issuer, $cid, $secret);

$oidc->authenticate();

The frontend sends a request to the backend that is handled by the authenticate function specified above.
The backend answers with a redirect to the authorize endpoint, the front end catches it and redirects to the url ( by setting the window.location)
The user logs in and then the a request is sent to the redirect_uri with the authorization code.
And I get the error "Undefined index: openid_connect_state"

However, when I hit the Controller authenticate function directly:
he backend answers with a redirect to the authorize endpoint, the front end catches it and redirects to the url
The user logs in and then the a request is sent to the redirect_uri with the authorization code.
And then requests a token and everything works fine.

@JuliusPC
Copy link
Contributor

Pull Request #251 would fix this. Because I don’t want to wait until jumbojett reacts, I forked this library and added this functionality. I will add some other improvements in the future.

@azmeuk
Copy link
Collaborator

azmeuk commented Nov 20, 2021

#251 is merged

@azmeuk azmeuk closed this as completed Nov 20, 2021
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