oauth2-client icon indicating copy to clipboard operation
oauth2-client copied to clipboard

ID Token for access token possible?

Open t3touch opened this issue 3 years ago • 1 comments

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

t3touch avatar Oct 20 '22 15:10 t3touch

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

t3touch avatar Oct 20 '22 16:10 t3touch