# アクセス トークンの取得に失敗しました

## 問題

KONNEKT にログインしようとすると、「Failed to obtain access token」というエラーメッセージが表示されます。

## 原因

KONNEKT は、MFA が必要な Microsoft Entra (Azure AD) Conditional Access ポリシーに「Excluded Apps」を含め、かつ非 SSO の Windows セッションと組み合わせる構成をサポートしていません。

## 回避策

当社が推奨する回避策は、Windows マシンで Primary Refresh Token (PRT) を保持できるようにすることです。たとえば、Entra Join (AAD Join) または Register によって実現できます。詳細は以下を参照してください。 [こちらから ](https://learn.microsoft.com/en-us/entra/identity/devices/concept-primary-refresh-token#how-is-a-prt-issued)を参照してください。

その他の代替手段は次のとおりです（あまり推奨されません）。

* 対応する Conditional Access ポリシーから MFA 要件を削除します。MFA なしの CA ポリシーでもある程度のセキュリティを維持するには、次を強制できます。 [Trusted Locations（例: VDI ホストのパブリック IP アドレス）](https://learn.microsoft.com/en-us/entra/identity/conditional-access/location-condition)

または

* 「Excluded Apps」を含まない Conditional Access ポリシーを使用してください。あわせて以下も参照してください。 [Conditional Access の構成](/ja/installation/security/conditional-access.md).

## 解決策

KONNEKT バージョン 2.10 で解決策が実装されました - 「[Enhanced OAuth](/ja/configuration/system-settings/kuo-zhang-ren-zheng.md)".&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.konnekt.io/ja/troubleshooting/access-token-issues/failed-to-obtain-access-token.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
