thephpleague / oauth2-client

Easy integration with OAuth 2.0 service providers.
http://oauth2-client.thephpleague.com
MIT License
3.64k stars 751 forks source link

ID Token for access token possible? #976

Open t3touch opened 1 year ago

t3touch commented 1 year ago

How can I add an ID Token to the access tokens?

t3touch commented 1 year ago

I think I got it 😃 Or is another way recommended?

// Try to respond to the request
$result = $server->respondToAccessTokenRequest($request, $response);
$result->getBody()->write(json_encode(['id_token' => 'test'])); // this is the line that adds the id_token to the response