thephpleague/oauth2-client

ID Token for access token possible?

t3touch opened this issue · 1 comments

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

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