oauth2-server-bundle icon indicating copy to clipboard operation
oauth2-server-bundle copied to clipboard

Support for OIDC ?

Open lucifer-crybaby opened this issue 3 years ago • 7 comments

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 ?

lucifer-crybaby avatar Oct 03 '22 08:10 lucifer-crybaby

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.

chalasr avatar Oct 06 '22 11:10 chalasr

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.

marcriemer avatar Nov 24 '22 23:11 marcriemer

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

dpfaffenbauer avatar Jul 05 '23 07:07 dpfaffenbauer

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

simondaigre avatar Aug 28 '23 13:08 simondaigre

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

chalasr avatar Aug 28 '23 15:08 chalasr

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

Indeed, sorry !

simondaigre avatar Aug 28 '23 15:08 simondaigre

@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.

marcriemer avatar May 19 '24 18:05 marcriemer