thephpleague / oauth2-server-bundle

Symfony bundle for the OAuth2 Server.
MIT License
179 stars 87 forks source link

Support for OIDC ? #104

Open lucifer-crybaby opened 1 year ago

lucifer-crybaby commented 1 year ago

Hi, I was able to integrate this bundle into my symfony project and somehow managed to get this working, clients can authorize and get access token and now I got stuck on how to configure userInfo endpoint (I'm using this package as a OIDC) any help ?

chalasr commented 1 year ago

This is something that needs to be done. Any contribution is welcome (could be "just" sharing what you did to achieve in this issue or even coming up with a PR). Once we get something satisfying, part of that logic should end up being moved to the oauth2-server library.

marcriemer commented 1 year ago

I started with this. Well others started, but now I will finish it.

Right now you can just overwrite the 5th argument (the default response) with a IdTokenResponse service (CompilerPassInterface). The IdTokenResponse is basically adding an id_token parameter on an openid scope.

https://symfony.com/doc/current/service_container/compiler_passes.html. https://github.com/marcriemer/oauth2-server

Implementation for the bundle will follow soon.

dpfaffenbauer commented 1 year ago

@marcriemer what is the status with your implementation? is it ready?

simondaigre commented 1 year ago

@chalasr Could you check this PR ? Any help wanted to finish this ?

chalasr commented 1 year ago

@simondaigre Which PR? Happy to do so but AFAIK nothing's been submitted yet :)

simondaigre commented 1 year ago

@simondaigre Which PR? Happy to do so but AFAIK nothing's been submitted yet :)

Indeed, sorry !

marcriemer commented 3 months ago

@marcriemer what is the status with your implementation? is it ready?

Still waiting for my pull request to be merged into oauth2-server.

https://github.com/thephpleague/oauth2-server/pull/1316

The IdTokenResponse implementation and oauth2-server-bundle compatibility for 9.x are required to complete OIDC.