> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

# response_type に id_token が含まれている場合の注意点

> response_typeにid_tokenが含まれる際の注意点についての詳細説明。

## 概要

認可リクエストにおいて、response\_type の値として id\_token が含まれている場合、scope の値にopenid が指定されていないとエラーとなります。

## 詳細

Authlete の [/auth/authorization](/api-reference/authorization-endpoint/process-authorization-request)
API をコールする際、parameters 中の response\_type の値として id\_token が含まれている場合、 scope の値に openid を含むようにしてください。

scope に openid が含まれていない場合、下記のようなメッセージが認可サーバーあてに返却されます。

```
{
    "type": "authorizationResponse",
    "resultCode": "A004302",
    "resultMessage": "[A004302] The value of 'response_type' (id_token) is not allowed when 'scope' does not contain 'openid'.",
    "action": "BAD_REQUEST",
    "client": ...
}
```
