Hi
My keycloak server Setting
OS : centos7
ver : keycloak-15.0.2
I connected and received the Authorization Code redirected.
(Code : 1b4ec447-021d-4212-9942-150ee6b69ea1.a99ca2c7-8b7e-4580-ac4a-b8f733a5112c.079f1b12-7a19-4cf7-84ee-77c9b50a7926)
And I requested to receive token.
Host: localhost:8080
Content-Type: application/x-www-form-urlencoded
Content-Length: 226
scope=openid&grant_type=authorization_code&client_id=Oauth2&client_secret=( client_secret)&code=code
result
{"access_token":"(jwt token value)" ,"expires_in":300,"refresh_expires_in":1800,"refresh_token":"
(jwt token value) ","token_type":"Bearer","not-before-policy":0,"session_state":"(state)","scope":"profile email"}
There are access tokens and refresh tokens, but no id tokens.
In the official documentation, it is stated that in the case of Authorization Code Flows, access, refresh, and id tokens are all received. Am I missing something?
(2.5.3. FlowsAuthorization Code
The Authorization Code flow redirects the user agent to Keycloak. Once the user has successfully authenticated with Keycloak an Authorization Code is created and the user agent is redirected back to the application. The application then uses the authorization code along with its credentials to obtain an Access Token, Refresh Token and ID Token from Keycloak.
The flow is targeted towards web applications, but is also recommended for native applications, including mobile applications, where it is possible to embed a user agent.